ReviewOS

also looking at this

stacks/ts-css

Merge @stacksjs/ts-css into this repo as packages/toolkit

#27
Merged glennmichael123 wants to merge merge/ts-css-toolkit into main
128 files +9797 -201
docs/config.mdmodified+5-5
Changes to docs/config.md
@@ -10,7 +10,7 @@ Create a configuration file using the init command:
1010cssx init
1111```This creates a basic`css.config.ts`file:```typescript
1212
13import type { TsCssOptions } from 'ts-css'
13import type { TsCssOptions } from '@ts-css/core'
1414
1515const config = {
1616 content: ['./src/**/*.{html,js,ts,jsx,tsx}'],
@@ -238,7 +238,7 @@ const config = {
238238
239239```**Creating a Preset:**```typescript
240240// presets/custom.ts
241import type { TsCssOptions } from 'ts-css'
241import type { TsCssOptions } from '@ts-css/core'
242242
243243export const myCustomPreset: Partial<TsCssConfig> = {
244244 theme: {
@@ -252,7 +252,7 @@ export const myCustomPreset: Partial<TsCssConfig> = {
252252}
253253```## Complete Configuration Example```typescript
254254
255import type { TsCssOptions } from 'ts-css'
255import type { TsCssOptions } from '@ts-css/core'
256256
257257const config = {
258258 // Required
@@ -306,7 +306,7 @@ export default config
306306```## Environment-Specific Configuration
307307
308308You can create different configurations for different environments:```typescript
309import type { TsCssOptions } from 'ts-css'
309import type { TsCssOptions } from '@ts-css/core'
310310
311311const isDev = process.env.NODE_ENV === 'development'
312312const isProd = process.env.NODE_ENV === 'production'
@@ -327,7 +327,7 @@ export default config
327327```## TypeScript Support
328328
329329ts-css provides full TypeScript support with type checking and autocomplete:```typescript
330import type { TsCssOptions } from 'ts-css'
330import type { TsCssOptions } from '@ts-css/core'
331331
332332// Use satisfies for type checking while preserving literal types
333333const config = {