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

add theme customization via configuring scss vars #116

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/guide/theming/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ the SCSS directly into your own SCSS, or just use the minified CSS directly.
@import '../node_modules/@braid/vue-formulate/themes/snow/snow.scss';
```

#### Customize the theme
The theme's [SCSS variables](https://github.com/wearebraid/vue-formulate/blob/master/themes/snow/_variables.scss) can be configured like this:

```scss
@use '../node_modules/@braid/vue-formulate/themes/snow/snow.scss' with (
$formulate-dark: #111111,
$formulate-white: #eeeeee
);
```

::: warning Warning
Theme customization relies on [configuring modules](https://sass-lang.com/documentation/variables#configuring-modules), which is currently supported only by `Dart Sass`.
:::

#### CSS File

The distribution of the snow theme is available in the repository for download
Expand Down