@podoba/tailwind 0.0.10 → 0.0.11
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 +1 -1
- package/src/index.ts +1 -22
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
// config so conflicting utilities dedupe correctly. Keep the two in sync.
|
|
17
17
|
|
|
18
18
|
import typography from "@tailwindcss/typography";
|
|
19
|
-
import plugin from "tailwindcss/plugin";
|
|
20
19
|
import type { Config } from "tailwindcss";
|
|
21
20
|
|
|
22
21
|
export const podobaPreset: Omit<Config, "content"> = {
|
|
@@ -87,18 +86,6 @@ export const podobaPreset: Omit<Config, "content"> = {
|
|
|
87
86
|
sans: "var(--font-sans)",
|
|
88
87
|
mono: "var(--font-mono)",
|
|
89
88
|
},
|
|
90
|
-
// NC Fontina reads best light, so the whole weight scale is shifted down one
|
|
91
|
-
// step (-100 from Tailwind's defaults): light 300→200, normal 400→300,
|
|
92
|
-
// medium 500→400, semibold 600→500, bold 700→600. Every value stays inside
|
|
93
|
-
// NC Fontina's 200–700 wght axis. The unused extremes (thin/extralight/
|
|
94
|
-
// extrabold/black) are left at Tailwind defaults — they fall outside the axis.
|
|
95
|
-
fontWeight: {
|
|
96
|
-
light: "200",
|
|
97
|
-
normal: "300",
|
|
98
|
-
medium: "400",
|
|
99
|
-
semibold: "500",
|
|
100
|
-
bold: "600",
|
|
101
|
-
},
|
|
102
89
|
fontSize: {
|
|
103
90
|
micro: "var(--font-size-micro)",
|
|
104
91
|
caption: "var(--font-size-caption)",
|
|
@@ -138,15 +125,7 @@ export const podobaPreset: Omit<Config, "content"> = {
|
|
|
138
125
|
},
|
|
139
126
|
},
|
|
140
127
|
},
|
|
141
|
-
plugins: [
|
|
142
|
-
typography,
|
|
143
|
-
// Base body weight follows `font-normal` (300) so UNSTYLED text (no explicit
|
|
144
|
-
// weight class) renders at 300 rather than the browser default 400. Tied to
|
|
145
|
-
// the token via theme('fontWeight.normal') so it can't drift from the scale.
|
|
146
|
-
plugin(({ addBase, theme }) => {
|
|
147
|
-
addBase({ html: { fontWeight: theme("fontWeight.normal") } });
|
|
148
|
-
}),
|
|
149
|
-
],
|
|
128
|
+
plugins: [typography],
|
|
150
129
|
};
|
|
151
130
|
|
|
152
131
|
export default podobaPreset;
|