tailwindcss-custom-colors 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +59 -43
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,41 @@ import { generateConfig } from "tailwindcss-custom-colors";
|
|
|
29
29
|
import { generateStyleVariables } from "tailwindcss-custom-colors";
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
### Options
|
|
33
|
+
|
|
34
|
+
The `Options` interface allows you to customize the behavior of the package. Below are the available options and their default values.
|
|
35
|
+
|
|
36
|
+
#### Available Options
|
|
37
|
+
|
|
38
|
+
- `suffixMultiplier` (optional): Determines the multiplier for suffixes. Possible values are `100`, `10`, or `1`. Default is `100`.
|
|
39
|
+
- `variablePrefix` (optional): Specifies a prefix for variable names. Default is `undefined`.
|
|
40
|
+
- `contrast` (optional): If set to `true`, calculates the contrast. Default is `true`.
|
|
41
|
+
- `complement` (optional): If set to `true`, calculates the complementary color. Default is `true`.
|
|
42
|
+
- `classification` (optional): An object containing color classifications for light and dark themes. Default is `{ light: "#FFFFFF", dark: "#000000" }`.
|
|
43
|
+
- `light`: Hex color for light theme. Default is `"#FFFFFF"`.
|
|
44
|
+
- `dark`: Hex color for dark theme. Default is `"#000000"`.
|
|
45
|
+
- `steps` (optional): Determines the step values for shades. Possible values are `100` or `50`. Default is `100`.
|
|
46
|
+
- `default` (optional): If set to `true`, uses the default configuration. Default is `true`.
|
|
47
|
+
|
|
48
|
+
#### Default Options
|
|
49
|
+
|
|
50
|
+
The `defaultOptions` object represents the default configuration for the package:
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
const defaultOptions: DefaultOptions = {
|
|
54
|
+
suffixMultiplier: 100,
|
|
55
|
+
variablePrefix: undefined,
|
|
56
|
+
contrast: true,
|
|
57
|
+
complement: true,
|
|
58
|
+
classification: {
|
|
59
|
+
light: "#FFFFFF",
|
|
60
|
+
dark: "#000000",
|
|
61
|
+
},
|
|
62
|
+
steps: 100,
|
|
63
|
+
default: true,
|
|
64
|
+
};
|
|
65
|
+
```
|
|
66
|
+
|
|
32
67
|
### generateConfig()
|
|
33
68
|
|
|
34
69
|
```js
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -9,12 +9,11 @@ const hexToRgb_1 = require("./utils/hexToRgb");
|
|
|
9
9
|
const hexToHsl_1 = __importDefault(require("./utils/hexToHsl"));
|
|
10
10
|
const round_1 = __importDefault(require("./utils/round"));
|
|
11
11
|
const variableName_1 = __importDefault(require("./utils/variableName"));
|
|
12
|
-
const
|
|
12
|
+
const SHADES = {
|
|
13
13
|
100: [1, 2, 3, 4, 5, 6, 7, 8, 9],
|
|
14
|
-
50: [
|
|
15
|
-
0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9, 9.5,
|
|
16
|
-
],
|
|
14
|
+
50: [1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9],
|
|
17
15
|
};
|
|
16
|
+
const EXTRA_SHADES = [0.5, 9.5];
|
|
18
17
|
const defaultOptions = {
|
|
19
18
|
suffixMultiplier: 100,
|
|
20
19
|
variablePrefix: undefined,
|
|
@@ -25,6 +24,8 @@ const defaultOptions = {
|
|
|
25
24
|
dark: "#000000",
|
|
26
25
|
},
|
|
27
26
|
steps: 100,
|
|
27
|
+
default: true,
|
|
28
|
+
extraShades: true,
|
|
28
29
|
};
|
|
29
30
|
const computeOptions = (options) => {
|
|
30
31
|
const computedOptions = {
|
|
@@ -40,24 +41,29 @@ const computeOptions = (options) => {
|
|
|
40
41
|
* @returns {TailwindColorsConfig} A config object for tailwindcss
|
|
41
42
|
*/
|
|
42
43
|
const generateConfig = (colorNames, options) => {
|
|
43
|
-
const { suffixMultiplier, variablePrefix, contrast, complement, steps } = computeOptions(options || {});
|
|
44
|
+
const { suffixMultiplier, variablePrefix, contrast, complement, steps, default: defaultOption, extraShades, } = computeOptions(options || {});
|
|
44
45
|
const colors = Array.isArray(colorNames) ? colorNames : [colorNames];
|
|
45
46
|
const config = {};
|
|
46
47
|
colors.forEach((colorName) => {
|
|
47
|
-
const
|
|
48
|
+
const defaultColor = {
|
|
48
49
|
DEFAULT: `rgb(var(${(0, variableName_1.default)(colorName, variablePrefix)}) / <alpha-value>)`,
|
|
49
|
-
...(contrast
|
|
50
|
-
? {
|
|
51
|
-
contrast: `rgb(var(${(0, variableName_1.default)(colorName, variablePrefix, "contrast")}) / <alpha-value>)`,
|
|
52
|
-
}
|
|
53
|
-
: {}),
|
|
54
|
-
...(complement
|
|
55
|
-
? {
|
|
56
|
-
complement: `rgb(var(${(0, variableName_1.default)(colorName, variablePrefix, "complement")}) / <alpha-value>)`,
|
|
57
|
-
}
|
|
58
|
-
: {}),
|
|
59
50
|
};
|
|
60
|
-
|
|
51
|
+
const contrastColor = {
|
|
52
|
+
contrast: `rgb(var(${(0, variableName_1.default)(colorName, variablePrefix, "contrast")}) / <alpha-value>)`,
|
|
53
|
+
};
|
|
54
|
+
const complementColor = {
|
|
55
|
+
complement: `rgb(var(${(0, variableName_1.default)(colorName, variablePrefix, "complement")}) / <alpha-value>)`,
|
|
56
|
+
};
|
|
57
|
+
const colorTints = {
|
|
58
|
+
...(defaultOption ? defaultColor : {}),
|
|
59
|
+
...(contrast ? contrastColor : {}),
|
|
60
|
+
...(complement ? complementColor : {}),
|
|
61
|
+
};
|
|
62
|
+
let shades = SHADES[steps];
|
|
63
|
+
if (extraShades) {
|
|
64
|
+
shades = [...shades, ...EXTRA_SHADES];
|
|
65
|
+
}
|
|
66
|
+
shades.forEach((shade) => {
|
|
61
67
|
const tintSuffix = `${shade * suffixMultiplier}`;
|
|
62
68
|
colorTints[tintSuffix] = `rgb(var(${(0, variableName_1.default)(colorName, variablePrefix, tintSuffix)}) / <alpha-value>)`;
|
|
63
69
|
});
|
|
@@ -73,24 +79,29 @@ exports.generateConfig = generateConfig;
|
|
|
73
79
|
* @returns {string} A string of css variables
|
|
74
80
|
*/
|
|
75
81
|
const generateStyleVariables = (colorParams, options) => {
|
|
76
|
-
const { suffixMultiplier, variablePrefix, contrast, complement, classification, steps, } = computeOptions(options || {});
|
|
82
|
+
const { suffixMultiplier, variablePrefix, contrast, complement, classification, steps, default: defaultOption, extraShades, } = computeOptions(options || {});
|
|
77
83
|
const colors = Array.isArray(colorParams) ? colorParams : [colorParams];
|
|
78
84
|
const styles = colors.map(({ color, name }) => {
|
|
79
85
|
const hslColor = (0, hexToHsl_1.default)(color);
|
|
80
|
-
const
|
|
86
|
+
const defaultTintColor = [
|
|
81
87
|
`${(0, variableName_1.default)(name, variablePrefix)}: ${(0, hexToRgb_1.hexToRgbString)(color)}`,
|
|
82
|
-
...(contrast
|
|
83
|
-
? [
|
|
84
|
-
`${(0, variableName_1.default)(name, variablePrefix, "contrast")}: ${(0, chroma_1.contrast)(hslColor, classification)}`,
|
|
85
|
-
]
|
|
86
|
-
: []),
|
|
87
|
-
...(complement
|
|
88
|
-
? [
|
|
89
|
-
`${(0, variableName_1.default)(name, variablePrefix, "complement")}: ${(0, chroma_1.complement)(hslColor, classification)}`,
|
|
90
|
-
]
|
|
91
|
-
: []),
|
|
92
88
|
];
|
|
93
|
-
|
|
89
|
+
const contrastTintColor = [
|
|
90
|
+
`${(0, variableName_1.default)(name, variablePrefix, "contrast")}: ${(0, chroma_1.contrast)(hslColor, classification)}`,
|
|
91
|
+
];
|
|
92
|
+
const complementTintColor = [
|
|
93
|
+
`${(0, variableName_1.default)(name, variablePrefix, "complement")}: ${(0, chroma_1.complement)(hslColor, classification)}`,
|
|
94
|
+
];
|
|
95
|
+
const tintsString = [
|
|
96
|
+
...(defaultOption ? defaultTintColor : []),
|
|
97
|
+
...(contrast ? contrastTintColor : []),
|
|
98
|
+
...(complement ? complementTintColor : []),
|
|
99
|
+
];
|
|
100
|
+
let shades = SHADES[steps];
|
|
101
|
+
if (extraShades) {
|
|
102
|
+
shades = [...shades, ...EXTRA_SHADES];
|
|
103
|
+
}
|
|
104
|
+
shades.forEach((shade) => {
|
|
94
105
|
const tintSuffix = `${shade * suffixMultiplier}`;
|
|
95
106
|
if (shade === 5) {
|
|
96
107
|
tintsString.push(`${(0, variableName_1.default)(name, variablePrefix, tintSuffix)}: ${(0, hexToRgb_1.hexToRgbString)(color)}`);
|
|
@@ -116,25 +127,30 @@ exports.generateStyleVariables = generateStyleVariables;
|
|
|
116
127
|
* @returns {TailwindColorsConfig} A config object for tailwindcss
|
|
117
128
|
*/
|
|
118
129
|
const generateConfigWithColors = (colorParams, options) => {
|
|
119
|
-
const { suffixMultiplier, variablePrefix, contrast, complement, classification, steps, } = computeOptions(options || {});
|
|
130
|
+
const { suffixMultiplier, variablePrefix, contrast, complement, classification, steps, default: defaultOption, extraShades, } = computeOptions(options || {});
|
|
120
131
|
const colors = Array.isArray(colorParams) ? colorParams : [colorParams];
|
|
121
132
|
const config = {};
|
|
122
133
|
colors.forEach(({ color, name }) => {
|
|
123
134
|
const hslColor = (0, hexToHsl_1.default)(color);
|
|
124
|
-
const
|
|
135
|
+
const defaultColor = {
|
|
125
136
|
DEFAULT: `rgb(${(0, hexToRgb_1.hexToRgbString)(color)} / <alpha-value>)`,
|
|
126
|
-
...(contrast
|
|
127
|
-
? {
|
|
128
|
-
contrast: `rgb(${(0, chroma_1.contrast)(hslColor, classification)} / <alpha-value>)`,
|
|
129
|
-
}
|
|
130
|
-
: {}),
|
|
131
|
-
...(complement
|
|
132
|
-
? {
|
|
133
|
-
complement: `rgb(${(0, chroma_1.complement)(hslColor, classification)} / <alpha-value>)`,
|
|
134
|
-
}
|
|
135
|
-
: {}),
|
|
136
137
|
};
|
|
137
|
-
|
|
138
|
+
const contrastColor = {
|
|
139
|
+
contrast: `rgb(${(0, chroma_1.contrast)(hslColor, classification)} / <alpha-value>)`,
|
|
140
|
+
};
|
|
141
|
+
const complementColor = {
|
|
142
|
+
complement: `rgb(${(0, chroma_1.complement)(hslColor, classification)} / <alpha-value>)`,
|
|
143
|
+
};
|
|
144
|
+
const colorTints = {
|
|
145
|
+
...(defaultOption ? defaultColor : {}),
|
|
146
|
+
...(contrast ? contrastColor : {}),
|
|
147
|
+
...(complement ? complementColor : {}),
|
|
148
|
+
};
|
|
149
|
+
let shades = SHADES[steps];
|
|
150
|
+
if (extraShades) {
|
|
151
|
+
shades = [...shades, ...EXTRA_SHADES];
|
|
152
|
+
}
|
|
153
|
+
shades.forEach((shade) => {
|
|
138
154
|
const tintSuffix = `${shade * suffixMultiplier}`;
|
|
139
155
|
if (shade === 5) {
|
|
140
156
|
colorTints[tintSuffix] = colorTints.DEFAULT;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,2CAKwB;AACxB,+CAAkD;AAClD,gEAAwC;AACxC,0DAAkC;AAClC,wEAAgD;AAEhD,MAAM,MAAM,GAAG;IACb,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAChC,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,2CAKwB;AACxB,+CAAkD;AAClD,gEAAwC;AACxC,0DAAkC;AAClC,wEAAgD;AAEhD,MAAM,MAAM,GAAG;IACb,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAChC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,E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