@latte-macchiat-io/latte-vanilla-components 0.0.544 → 0.0.545
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/package.json
CHANGED
|
@@ -10,15 +10,6 @@ type BreakpointMap = Partial<Record<Breakpoints, ResponsiveValue>>;
|
|
|
10
10
|
// Ordered list of breakpoints
|
|
11
11
|
const BPS: Breakpoints[] = ['mobile', 'sm', 'md', 'lg', 'xl', '2xl'];
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* Converts a value to a CSS-friendly string.
|
|
15
|
-
* If it starts with "--", treat as CSS variable.
|
|
16
|
-
*/
|
|
17
|
-
const toCssValue = (v: ResponsiveValue) => {
|
|
18
|
-
const s = String(v);
|
|
19
|
-
return s.startsWith('--') ? `var(${s})` : s;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
13
|
/**
|
|
23
14
|
* Generates a fully responsive CSS object for Vanilla Extract
|
|
24
15
|
*
|