Update styleguide colors
This commit is contained in:
parent
dd18cf895b
commit
eaa06719d6
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 50 KiB |
|
|
@ -54,8 +54,8 @@ const dropdownData = [
|
||||||
// TODO: die CSS-Klasse für die Farben wird hier in der StyleGuideView.vue generiert.
|
// TODO: die CSS-Klasse für die Farben wird hier in der StyleGuideView.vue generiert.
|
||||||
// deshalb muss man diese CSS-Klassen in tailwind.config.js "safelist"en, wenn diese sonst
|
// deshalb muss man diese CSS-Klassen in tailwind.config.js "safelist"en, wenn diese sonst
|
||||||
// noch nirgendwo verwendet werden.
|
// noch nirgendwo verwendet werden.
|
||||||
const colors = ['blue', 'sky', 'orange', 'green', 'red', 'gray',];
|
const colors = ['blue', 'sky', 'green', 'red', 'orange', 'yellow', 'stone', 'gray', 'slate'];
|
||||||
const colorValues = [100, 200, 300, 400, 500, 600, 700, 800, 900,];
|
const colorValues = [200, 300, 400, 500, 600, 700, 800, 900,];
|
||||||
|
|
||||||
function colorBgClass(color: string, value: number) {
|
function colorBgClass(color: string, value: number) {
|
||||||
return `bg-${color}-${value}`;
|
return `bg-${color}-${value}`;
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
colors: colors,
|
colors: colors,
|
||||||
},
|
},
|
||||||
safelist: [{
|
safelist: [
|
||||||
pattern: /bg-(blue|sky|orange|green|red)-(400|500|600|700)/,
|
{ pattern: /bg-(blue|sky|green|red|orange|yellow|stone|gray|slate)-(200|300|400|500|600|700|800|900)/, },
|
||||||
}, {
|
|
||||||
pattern: /bg-gray-(100|300|500|700|900)/,
|
|
||||||
},
|
|
||||||
'bg-blue-900',
|
|
||||||
'it-icon',
|
'it-icon',
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue