mirror of
https://github.com/LukeHagar/skeleton.git
synced 2025-12-09 20:57:45 +00:00
v2: Implement Wintry Preset Theme (#1902)
Co-authored-by: AdrianGonz97 <31664583+AdrianGonz97@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import { readFileSync } from 'fs';
|
||||
import { writeFile } from 'fs/promises';
|
||||
import postcss from 'postcss';
|
||||
import postcssJs from 'postcss-js';
|
||||
import type { Theme } from '../src/tailwind/themes';
|
||||
import type { PresetTheme } from '../src/tailwind/themes';
|
||||
|
||||
// Converts a theme's .css file into a .ts file.
|
||||
export async function convertTheme(name: string) {
|
||||
@@ -17,9 +17,11 @@ export async function convertTheme(name: string) {
|
||||
delete cssInJs[':root'];
|
||||
|
||||
const theme = {
|
||||
name,
|
||||
properties: properties,
|
||||
enhancements: { ...cssInJs }
|
||||
} satisfies Theme;
|
||||
enhancements: { ...cssInJs },
|
||||
properties_dark: {}
|
||||
} satisfies PresetTheme;
|
||||
|
||||
// Creates the generated CSS-in-JS file
|
||||
await writeFile(
|
||||
|
||||
Reference in New Issue
Block a user