Files
skillshare/ui
Willie 6fb99035af feat(ui): add multi-theme system with Playful (hand-drawn) style
Add a two-dimensional theme system: Style (Clean/Playful) × Mode (Light/Dark/System).

Theme infrastructure:
- ThemeContext with style + mode state, matchMedia listener, localStorage persistence
- ThemePopover in sidebar for switching style and mode
- FOUC prevention via inline script in index.html
- CSS custom properties for radius, shadows, fonts (resolved per theme)
- design.ts migrated to CSS variable refs

Playful theme features:
- Wobbly border-radius on cards, buttons, badges, inputs, dialogs
- Hard offset shadows (no blur) for sketch aesthetic
- Caveat handwritten font for headings, DM Sans for body text
- Dotted paper texture background
- Skill cards as pastel sticky notes with masking tape strips
- Wavy underlines on links
- Dashed sidebar border with Caveat section headers
- Per-card wobble variety (6 unique border-radius patterns)

Component enhancements:
- ss-* CSS class hooks on all themed components for CSS-only overrides
- SegmentedControl: aria-pressed for theme targeting, clean defaults
- SkillDetailSkeleton: custom loading skeleton matching detail page layout
- Dashboard Quick Action cards: hover animations (pulse/bounce)
- AuditPage: fix tour step targeting

Clean theme unchanged — all Playful styles scoped under [data-theme="playful"].
2026-03-12 23:23:28 +08:00
..

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])