@ecohouse/ui 0.1.14 → 0.1.15
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/theme/colors.test.ts +3 -0
- package/src/theme/typography.ts +3 -3
package/package.json
CHANGED
package/src/theme/colors.test.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { colors } from "./colors";
|
|
|
3
3
|
import {
|
|
4
4
|
buttonTypography,
|
|
5
5
|
inputTypography,
|
|
6
|
+
segmentedToggleTypography,
|
|
6
7
|
selectTypography,
|
|
7
8
|
textareaTypography,
|
|
8
9
|
} from "./typography";
|
|
@@ -20,6 +21,8 @@ describe("design tokens", () => {
|
|
|
20
21
|
expect(colors.whiteAlpha5).toBe("#FFFFFF0D");
|
|
21
22
|
expect(buttonTypography.lg.fontSize).toBe(14);
|
|
22
23
|
expect(buttonTypography.lg.fontWeight).toBe("600");
|
|
24
|
+
expect(segmentedToggleTypography.fontSize).toBe(12);
|
|
25
|
+
expect(segmentedToggleTypography.lineHeight).toBe(12);
|
|
23
26
|
});
|
|
24
27
|
|
|
25
28
|
it("keeps Input, Select, and Textarea field text aligned", () => {
|
package/src/theme/typography.ts
CHANGED
|
@@ -38,12 +38,12 @@ export const statCardTypography = {
|
|
|
38
38
|
letterSpacing: 0,
|
|
39
39
|
} as const;
|
|
40
40
|
|
|
41
|
-
/** Segmented toggle label — Medium
|
|
41
|
+
/** Segmented toggle label — Medium 12, line-height 100%, letter-spacing 0. */
|
|
42
42
|
export const segmentedToggleTypography = {
|
|
43
43
|
fontFamily: fonts.sans,
|
|
44
|
-
fontSize:
|
|
44
|
+
fontSize: 12,
|
|
45
45
|
fontWeight: "500" as const,
|
|
46
|
-
lineHeight:
|
|
46
|
+
lineHeight: 12,
|
|
47
47
|
letterSpacing: 0,
|
|
48
48
|
} as const;
|
|
49
49
|
|