mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
- 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>
15 lines
229 B
JavaScript
15 lines
229 B
JavaScript
const fs = require('fs-extra');
|
|
const path = require('path');
|
|
|
|
|
|
const cleanDirs = [
|
|
'dist',
|
|
'css',
|
|
'themes'
|
|
];
|
|
|
|
cleanDirs.forEach(dir => {
|
|
const cleanDir = path.join(__dirname, '../', dir);
|
|
fs.removeSync(cleanDir);
|
|
});
|