@kilivi/payloadcms-theme-management 0.3.4 → 0.5.3
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/fields/ThemeColorPickerField.css +197 -76
- package/dist/fields/ThemeColorPickerField.d.ts.map +1 -1
- package/dist/fields/ThemeColorPickerField.js +41 -171
- package/dist/fields/ThemeColorPickerField.js.map +1 -1
- package/dist/fields/ThemePreviewField.js +3 -3
- package/dist/fields/ThemePreviewField.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/presets.d.ts +1 -0
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +7 -0
- package/dist/presets.js.map +1 -1
- package/dist/utils/tweakcnConverter.d.ts +14 -0
- package/dist/utils/tweakcnConverter.d.ts.map +1 -0
- package/dist/utils/tweakcnConverter.js +170 -0
- package/dist/utils/tweakcnConverter.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts TweakCN theme presets to standard ThemePreset format
|
|
3
|
+
*/ import { tweakcnThemePresets } from '../tweakcn-presets.js';
|
|
4
|
+
/**
|
|
5
|
+
* Converts OKLCH color to HSL for preview
|
|
6
|
+
* Simple extraction - takes the lightness value
|
|
7
|
+
*/ function oklchToPreviewColor(oklch) {
|
|
8
|
+
// Extract lightness from oklch(L C H)
|
|
9
|
+
const match = oklch.match(/oklch\(([\d.]+)\s+([\d.]+)\s+([\d.]+)\)/);
|
|
10
|
+
if (!match) return '#3b82f6' // fallback blue
|
|
11
|
+
;
|
|
12
|
+
const [, l, c, h] = match;
|
|
13
|
+
const lightness = Math.round(parseFloat(l) * 100);
|
|
14
|
+
const chroma = parseFloat(c);
|
|
15
|
+
const hue = parseFloat(h);
|
|
16
|
+
// Convert to HSL approximation for preview
|
|
17
|
+
const saturation = Math.min(100, Math.round(chroma * 100));
|
|
18
|
+
return `hsl(${hue}, ${saturation}%, ${lightness}%)`;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Maps OKLCH color to HEX for Payload compatibility
|
|
22
|
+
* Converts OKLCH to RGB then to HEX
|
|
23
|
+
*/ function convertOklchColor(oklch) {
|
|
24
|
+
// Extract values from oklch(L C H)
|
|
25
|
+
const match = oklch.match(/oklch\(([\d.]+)\s+([\d.]+)\s+([\d.]+)\)/);
|
|
26
|
+
if (!match) return '#3b82f6' // fallback blue
|
|
27
|
+
;
|
|
28
|
+
const [, l, c, h] = match;
|
|
29
|
+
const lightness = parseFloat(l);
|
|
30
|
+
const chroma = parseFloat(c);
|
|
31
|
+
const hue = parseFloat(h);
|
|
32
|
+
// Convert OKLCH to linear RGB
|
|
33
|
+
// This is a simplified conversion - OKLCH->OKLab->Linear RGB->sRGB
|
|
34
|
+
const hueRad = hue * Math.PI / 180;
|
|
35
|
+
// OKLab coordinates
|
|
36
|
+
const a = chroma * Math.cos(hueRad);
|
|
37
|
+
const b = chroma * Math.sin(hueRad);
|
|
38
|
+
// OKLab to linear RGB (simplified matrix multiplication)
|
|
39
|
+
const l_ = lightness + 0.3963377774 * a + 0.2158037573 * b;
|
|
40
|
+
const m_ = lightness - 0.1055613458 * a - 0.0638541728 * b;
|
|
41
|
+
const s_ = lightness - 0.0894841775 * a - 1.291485548 * b;
|
|
42
|
+
const l3 = l_ * l_ * l_;
|
|
43
|
+
const m3 = m_ * m_ * m_;
|
|
44
|
+
const s3 = s_ * s_ * s_;
|
|
45
|
+
let r = +4.0767416621 * l3 - 3.3077115913 * m3 + 0.2309699292 * s3;
|
|
46
|
+
let g = -1.2684380046 * l3 + 2.6097574011 * m3 - 0.3413193965 * s3;
|
|
47
|
+
let bl = -0.0041960863 * l3 - 0.7034186147 * m3 + 1.707614701 * s3;
|
|
48
|
+
// Clamp to [0, 1]
|
|
49
|
+
r = Math.max(0, Math.min(1, r));
|
|
50
|
+
g = Math.max(0, Math.min(1, g));
|
|
51
|
+
bl = Math.max(0, Math.min(1, bl));
|
|
52
|
+
// Convert to sRGB (gamma correction)
|
|
53
|
+
const toSRGB = (c)=>{
|
|
54
|
+
return c <= 0.0031308 ? 12.92 * c : 1.055 * Math.pow(c, 1 / 2.4) - 0.055;
|
|
55
|
+
};
|
|
56
|
+
r = toSRGB(r);
|
|
57
|
+
g = toSRGB(g);
|
|
58
|
+
bl = toSRGB(bl);
|
|
59
|
+
// Convert to HEX
|
|
60
|
+
const toHex = (c)=>{
|
|
61
|
+
const hex = Math.round(c * 255).toString(16);
|
|
62
|
+
return hex.length === 1 ? '0' + hex : hex;
|
|
63
|
+
};
|
|
64
|
+
return `#${toHex(r)}${toHex(g)}${toHex(bl)}`;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Converts ExtendedThemePreset to ThemePreset
|
|
68
|
+
*/ export function convertTweakCNPreset(extended) {
|
|
69
|
+
const { label, value, styles } = extended;
|
|
70
|
+
const { light, dark } = styles;
|
|
71
|
+
// Extract border radius
|
|
72
|
+
const radiusValue = light.radius ?? '0.5rem';
|
|
73
|
+
let borderRadius;
|
|
74
|
+
if (radiusValue === '0' || radiusValue === '0px' || radiusValue === '0rem') {
|
|
75
|
+
borderRadius = 'none';
|
|
76
|
+
} else if (parseFloat(radiusValue) <= 0.25) {
|
|
77
|
+
borderRadius = 'small';
|
|
78
|
+
} else if (parseFloat(radiusValue) <= 0.5) {
|
|
79
|
+
borderRadius = 'medium';
|
|
80
|
+
} else if (parseFloat(radiusValue) <= 0.75) {
|
|
81
|
+
borderRadius = 'large';
|
|
82
|
+
} else {
|
|
83
|
+
borderRadius = 'xl';
|
|
84
|
+
}
|
|
85
|
+
// Convert light mode colors
|
|
86
|
+
const lightMode = {
|
|
87
|
+
background: convertOklchColor(light.background),
|
|
88
|
+
foreground: convertOklchColor(light.foreground),
|
|
89
|
+
card: convertOklchColor(light.card),
|
|
90
|
+
cardForeground: convertOklchColor(light['card-foreground']),
|
|
91
|
+
popover: convertOklchColor(light.popover),
|
|
92
|
+
popoverForeground: convertOklchColor(light['popover-foreground']),
|
|
93
|
+
primary: convertOklchColor(light.primary),
|
|
94
|
+
primaryForeground: convertOklchColor(light['primary-foreground']),
|
|
95
|
+
secondary: convertOklchColor(light.secondary),
|
|
96
|
+
secondaryForeground: convertOklchColor(light['secondary-foreground']),
|
|
97
|
+
muted: convertOklchColor(light.muted),
|
|
98
|
+
mutedForeground: convertOklchColor(light['muted-foreground']),
|
|
99
|
+
accent: convertOklchColor(light.accent),
|
|
100
|
+
accentForeground: convertOklchColor(light['accent-foreground']),
|
|
101
|
+
destructive: convertOklchColor(light.destructive),
|
|
102
|
+
destructiveForeground: convertOklchColor(light['destructive-foreground']),
|
|
103
|
+
border: convertOklchColor(light.border),
|
|
104
|
+
input: convertOklchColor(light.input),
|
|
105
|
+
ring: convertOklchColor(light.ring)
|
|
106
|
+
};
|
|
107
|
+
// Convert dark mode colors
|
|
108
|
+
const darkMode = {
|
|
109
|
+
background: convertOklchColor(dark.background),
|
|
110
|
+
foreground: convertOklchColor(dark.foreground),
|
|
111
|
+
card: convertOklchColor(dark.card),
|
|
112
|
+
cardForeground: convertOklchColor(dark['card-foreground']),
|
|
113
|
+
popover: convertOklchColor(dark.popover),
|
|
114
|
+
popoverForeground: convertOklchColor(dark['popover-foreground']),
|
|
115
|
+
primary: convertOklchColor(dark.primary),
|
|
116
|
+
primaryForeground: convertOklchColor(dark['primary-foreground']),
|
|
117
|
+
secondary: convertOklchColor(dark.secondary),
|
|
118
|
+
secondaryForeground: convertOklchColor(dark['secondary-foreground']),
|
|
119
|
+
muted: convertOklchColor(dark.muted),
|
|
120
|
+
mutedForeground: convertOklchColor(dark['muted-foreground']),
|
|
121
|
+
accent: convertOklchColor(dark.accent),
|
|
122
|
+
accentForeground: convertOklchColor(dark['accent-foreground']),
|
|
123
|
+
destructive: convertOklchColor(dark.destructive),
|
|
124
|
+
destructiveForeground: convertOklchColor(dark['destructive-foreground']),
|
|
125
|
+
border: convertOklchColor(dark.border),
|
|
126
|
+
input: convertOklchColor(dark.input),
|
|
127
|
+
ring: convertOklchColor(dark.ring)
|
|
128
|
+
};
|
|
129
|
+
// Generate preview colors
|
|
130
|
+
const preview = {
|
|
131
|
+
colors: {
|
|
132
|
+
primary: oklchToPreviewColor(light.primary),
|
|
133
|
+
background: oklchToPreviewColor(light.background),
|
|
134
|
+
accent: oklchToPreviewColor(light.accent)
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
// Typography configuration
|
|
138
|
+
const typography = light['font-sans'] ? {
|
|
139
|
+
fontFamily: light['font-sans'],
|
|
140
|
+
headingFamily: light['font-sans'],
|
|
141
|
+
baseFontSize: '16px',
|
|
142
|
+
lineHeight: '1.6',
|
|
143
|
+
fontWeights: {
|
|
144
|
+
normal: '400',
|
|
145
|
+
medium: '500',
|
|
146
|
+
semibold: '600',
|
|
147
|
+
bold: '700'
|
|
148
|
+
},
|
|
149
|
+
letterSpacing: {
|
|
150
|
+
normal: '0',
|
|
151
|
+
wide: '0.025em'
|
|
152
|
+
}
|
|
153
|
+
} : undefined;
|
|
154
|
+
return {
|
|
155
|
+
name: `tweakcn-${value}`,
|
|
156
|
+
label: `${label} (TweakCN)`,
|
|
157
|
+
borderRadius,
|
|
158
|
+
preview,
|
|
159
|
+
lightMode,
|
|
160
|
+
darkMode,
|
|
161
|
+
typography
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Converts all TweakCN presets to ThemePreset format
|
|
166
|
+
*/ export function getAllTweakCNPresets() {
|
|
167
|
+
return Object.values(tweakcnThemePresets).map(convertTweakCNPreset);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
//# sourceMappingURL=tweakcnConverter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/tweakcnConverter.ts"],"sourcesContent":["/**\n * Converts TweakCN theme presets to standard ThemePreset format\n */\n\nimport type { ExtendedThemePreset } from '../extended-presets.js'\nimport type { ThemePreset } from '../presets.js'\nimport { tweakcnThemePresets } from '../tweakcn-presets.js'\n\n/**\n * Converts OKLCH color to HSL for preview\n * Simple extraction - takes the lightness value\n */\nfunction oklchToPreviewColor(oklch: string): string {\n // Extract lightness from oklch(L C H)\n const match = oklch.match(/oklch\\(([\\d.]+)\\s+([\\d.]+)\\s+([\\d.]+)\\)/)\n if (!match) return '#3b82f6' // fallback blue\n\n const [, l, c, h] = match\n const lightness = Math.round(parseFloat(l) * 100)\n const chroma = parseFloat(c)\n const hue = parseFloat(h)\n\n // Convert to HSL approximation for preview\n const saturation = Math.min(100, Math.round(chroma * 100))\n\n return `hsl(${hue}, ${saturation}%, ${lightness}%)`\n}\n\n/**\n * Maps OKLCH color to HEX for Payload compatibility\n * Converts OKLCH to RGB then to HEX\n */\nfunction convertOklchColor(oklch: string): string {\n // Extract values from oklch(L C H)\n const match = oklch.match(/oklch\\(([\\d.]+)\\s+([\\d.]+)\\s+([\\d.]+)\\)/)\n if (!match) return '#3b82f6' // fallback blue\n\n const [, l, c, h] = match\n const lightness = parseFloat(l)\n const chroma = parseFloat(c)\n const hue = parseFloat(h)\n\n // Convert OKLCH to linear RGB\n // This is a simplified conversion - OKLCH->OKLab->Linear RGB->sRGB\n const hueRad = (hue * Math.PI) / 180\n\n // OKLab coordinates\n const a = chroma * Math.cos(hueRad)\n const b = chroma * Math.sin(hueRad)\n\n // OKLab to linear RGB (simplified matrix multiplication)\n const l_ = lightness + 0.3963377774 * a + 0.2158037573 * b\n const m_ = lightness - 0.1055613458 * a - 0.0638541728 * b\n const s_ = lightness - 0.0894841775 * a - 1.291485548 * b\n\n const l3 = l_ * l_ * l_\n const m3 = m_ * m_ * m_\n const s3 = s_ * s_ * s_\n\n let r = +4.0767416621 * l3 - 3.3077115913 * m3 + 0.2309699292 * s3\n let g = -1.2684380046 * l3 + 2.6097574011 * m3 - 0.3413193965 * s3\n let bl = -0.0041960863 * l3 - 0.7034186147 * m3 + 1.707614701 * s3\n\n // Clamp to [0, 1]\n r = Math.max(0, Math.min(1, r))\n g = Math.max(0, Math.min(1, g))\n bl = Math.max(0, Math.min(1, bl))\n\n // Convert to sRGB (gamma correction)\n const toSRGB = (c: number) => {\n return c <= 0.0031308 ? 12.92 * c : 1.055 * Math.pow(c, 1 / 2.4) - 0.055\n }\n\n r = toSRGB(r)\n g = toSRGB(g)\n bl = toSRGB(bl)\n\n // Convert to HEX\n const toHex = (c: number) => {\n const hex = Math.round(c * 255).toString(16)\n return hex.length === 1 ? '0' + hex : hex\n }\n\n return `#${toHex(r)}${toHex(g)}${toHex(bl)}`\n}\n\n/**\n * Converts ExtendedThemePreset to ThemePreset\n */\nexport function convertTweakCNPreset(extended: ExtendedThemePreset): ThemePreset {\n const { label, value, styles } = extended\n const { light, dark } = styles\n\n // Extract border radius\n const radiusValue = light.radius ?? '0.5rem'\n let borderRadius: ThemePreset['borderRadius']\n\n if (radiusValue === '0' || radiusValue === '0px' || radiusValue === '0rem') {\n borderRadius = 'none'\n } else if (parseFloat(radiusValue) <= 0.25) {\n borderRadius = 'small'\n } else if (parseFloat(radiusValue) <= 0.5) {\n borderRadius = 'medium'\n } else if (parseFloat(radiusValue) <= 0.75) {\n borderRadius = 'large'\n } else {\n borderRadius = 'xl'\n }\n\n // Convert light mode colors\n const lightMode: Record<string, string> = {\n background: convertOklchColor(light.background),\n foreground: convertOklchColor(light.foreground),\n card: convertOklchColor(light.card),\n cardForeground: convertOklchColor(light['card-foreground']),\n popover: convertOklchColor(light.popover),\n popoverForeground: convertOklchColor(light['popover-foreground']),\n primary: convertOklchColor(light.primary),\n primaryForeground: convertOklchColor(light['primary-foreground']),\n secondary: convertOklchColor(light.secondary),\n secondaryForeground: convertOklchColor(light['secondary-foreground']),\n muted: convertOklchColor(light.muted),\n mutedForeground: convertOklchColor(light['muted-foreground']),\n accent: convertOklchColor(light.accent),\n accentForeground: convertOklchColor(light['accent-foreground']),\n destructive: convertOklchColor(light.destructive),\n destructiveForeground: convertOklchColor(light['destructive-foreground']),\n border: convertOklchColor(light.border),\n input: convertOklchColor(light.input),\n ring: convertOklchColor(light.ring),\n }\n\n // Convert dark mode colors\n const darkMode: Record<string, string> = {\n background: convertOklchColor(dark.background),\n foreground: convertOklchColor(dark.foreground),\n card: convertOklchColor(dark.card),\n cardForeground: convertOklchColor(dark['card-foreground']),\n popover: convertOklchColor(dark.popover),\n popoverForeground: convertOklchColor(dark['popover-foreground']),\n primary: convertOklchColor(dark.primary),\n primaryForeground: convertOklchColor(dark['primary-foreground']),\n secondary: convertOklchColor(dark.secondary),\n secondaryForeground: convertOklchColor(dark['secondary-foreground']),\n muted: convertOklchColor(dark.muted),\n mutedForeground: convertOklchColor(dark['muted-foreground']),\n accent: convertOklchColor(dark.accent),\n accentForeground: convertOklchColor(dark['accent-foreground']),\n destructive: convertOklchColor(dark.destructive),\n destructiveForeground: convertOklchColor(dark['destructive-foreground']),\n border: convertOklchColor(dark.border),\n input: convertOklchColor(dark.input),\n ring: convertOklchColor(dark.ring),\n }\n\n // Generate preview colors\n const preview = {\n colors: {\n primary: oklchToPreviewColor(light.primary),\n background: oklchToPreviewColor(light.background),\n accent: oklchToPreviewColor(light.accent),\n },\n }\n\n // Typography configuration\n const typography = light['font-sans']\n ? {\n fontFamily: light['font-sans'],\n headingFamily: light['font-sans'],\n baseFontSize: '16px',\n lineHeight: '1.6',\n fontWeights: {\n normal: '400',\n medium: '500',\n semibold: '600',\n bold: '700',\n },\n letterSpacing: {\n normal: '0',\n wide: '0.025em',\n },\n }\n : undefined\n\n return {\n name: `tweakcn-${value}`,\n label: `${label} (TweakCN)`,\n borderRadius,\n preview,\n lightMode,\n darkMode,\n typography,\n }\n}\n\n/**\n * Converts all TweakCN presets to ThemePreset format\n */\nexport function getAllTweakCNPresets(): ThemePreset[] {\n return Object.values(tweakcnThemePresets).map(convertTweakCNPreset)\n}\n"],"names":["tweakcnThemePresets","oklchToPreviewColor","oklch","match","l","c","h","lightness","Math","round","parseFloat","chroma","hue","saturation","min","convertOklchColor","hueRad","PI","a","cos","b","sin","l_","m_","s_","l3","m3","s3","r","g","bl","max","toSRGB","pow","toHex","hex","toString","length","convertTweakCNPreset","extended","label","value","styles","light","dark","radiusValue","radius","borderRadius","lightMode","background","foreground","card","cardForeground","popover","popoverForeground","primary","primaryForeground","secondary","secondaryForeground","muted","mutedForeground","accent","accentForeground","destructive","destructiveForeground","border","input","ring","darkMode","preview","colors","typography","fontFamily","headingFamily","baseFontSize","lineHeight","fontWeights","normal","medium","semibold","bold","letterSpacing","wide","undefined","name","getAllTweakCNPresets","Object","values","map"],"mappings":"AAAA;;CAEC,GAID,SAASA,mBAAmB,QAAQ,wBAAuB;AAE3D;;;CAGC,GACD,SAASC,oBAAoBC,KAAa;IACxC,sCAAsC;IACtC,MAAMC,QAAQD,MAAMC,KAAK,CAAC;IAC1B,IAAI,CAACA,OAAO,OAAO,UAAU,gBAAgB;;IAE7C,MAAM,GAAGC,GAAGC,GAAGC,EAAE,GAAGH;IACpB,MAAMI,YAAYC,KAAKC,KAAK,CAACC,WAAWN,KAAK;IAC7C,MAAMO,SAASD,WAAWL;IAC1B,MAAMO,MAAMF,WAAWJ;IAEvB,2CAA2C;IAC3C,MAAMO,aAAaL,KAAKM,GAAG,CAAC,KAAKN,KAAKC,KAAK,CAACE,SAAS;IAErD,OAAO,CAAC,IAAI,EAAEC,IAAI,EAAE,EAAEC,WAAW,GAAG,EAAEN,UAAU,EAAE,CAAC;AACrD;AAEA;;;CAGC,GACD,SAASQ,kBAAkBb,KAAa;IACtC,mCAAmC;IACnC,MAAMC,QAAQD,MAAMC,KAAK,CAAC;IAC1B,IAAI,CAACA,OAAO,OAAO,UAAU,gBAAgB;;IAE7C,MAAM,GAAGC,GAAGC,GAAGC,EAAE,GAAGH;IACpB,MAAMI,YAAYG,WAAWN;IAC7B,MAAMO,SAASD,WAAWL;IAC1B,MAAMO,MAAMF,WAAWJ;IAEvB,8BAA8B;IAC9B,mEAAmE;IACnE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BAAoB0C,MAAMkB,MAAM;QAC1C;IACF;IAEA,2BAA2B;IAC3B,MAAMU,aAAa5B,KAAK,CAAC,YAAY,GACjC;QACE6B,YAAY7B,KAAK,CAAC,YAAY;QAC9B8B,eAAe9B,KAAK,CAAC,YAAY;QACjC+B,cAAc;QACdC,YAAY;QACZC,aAAa;YACXC,QAAQ;YACRC,QAAQ;YACRC,UAAU;YACVC,MAAM;QACR;QACAC,eAAe;YACbJ,QAAQ;YACRK,MAAM;QACR;IACF,IACAC;IAEJ,OAAO;QACLC,MAAM,CAAC,QAAQ,EAAE3C,OAAO;QACxBD,OAAO,GAAGA,MAAM,UAAU,CAAC;QAC3BO;QACAsB;QACArB;QACAoB;QACAG;IACF;AACF;AAEA;;CAEC,GACD,OAAO,SAASc;IACd,OAAOC,OAAOC,MAAM,CAACvF,qBAAqBwF,GAAG,CAAClD;AAChD"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kilivi/payloadcms-theme-management",
|
|
3
|
-
"version": "0.3
|
|
4
|
-
"description": "Theme configuration plugin for Payload CMS v3",
|
|
3
|
+
"version": "0.5.3",
|
|
4
|
+
"description": "Theme configuration plugin for Payload CMS v3 with 60+ professional themes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|