Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply a Predefined Theme - Wrong instructions #7088

Closed
JaneSjs opened this issue Oct 6, 2023 · 0 comments
Closed

Apply a Predefined Theme - Wrong instructions #7088

JaneSjs opened this issue Oct 6, 2023 · 0 comments
Assignees
Labels
bug documentation user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Oct 6, 2023

User Issue: T14916 - Switching between default themes in Angular
https://surveyjs.answerdesk.io/internal/ticket/details/T14916


Please update this topic:

## Apply a Predefined Theme

To apply a predefined theme, it is necessary to import defaultV2.css, import a Theme module, and call the survey.applyTheme(Theme) function.

import "survey-core/defaultV2.min.css";
import BorderlessDark from "survey-core/themes/borderless-dark.js";
import DoubleBorderLight from "survey-core/themes/doubleborder-light.js";

survey.applyTheme(DoubleBorderLight);

View CodeSandbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug documentation user issue An issue or bug reported by users
Projects
None yet
Development

No branches or pull requests

3 participants