mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
feat(themes): add ionic theme tokens (#30708)
- Updates the token interface to accept a numeric scale. - Updates the base tokens to use the new interface. - Adds tokens for the `ionic` theme based on the existing design tokens. - Excludes certain keys (`enabled`, `rippleEffect`, `formHighlight`) from the generated CSS variables. - Removes the `--background` and `--ion-background-color` from the global `ionic` theme overrides, allowing it to use the dark palette. - Removes the different Ionic colors from the `ionic` theme, ensuring all of the themes use the same named (primary, secondary, etc.) colors. - Updates the testing script to pull in the tokens based on the theme & palette passed to the URL. - Adds a new npm script, `build.themes`, to generate the theme files. --------- Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
This commit is contained in:
@ -4,7 +4,8 @@ const path = require('path');
|
||||
|
||||
const cleanDirs = [
|
||||
'dist',
|
||||
'css'
|
||||
'css',
|
||||
'themes'
|
||||
];
|
||||
|
||||
cleanDirs.forEach(dir => {
|
||||
|
||||
Reference in New Issue
Block a user