← 返回
未分类 中文

react design

Applies the Learn Social Studies brand system to React interfaces using CSS variables, reusable component conventions, light theme by default, and dark theme...
将 Learn Social Studies 品牌系统应用于 React 界面,采用 CSS 变量、可复用组件规范,默认浅色主题并支持深色主题。
lssmanager lssmanager 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 365
下载
💾 0
安装
1
版本
#latest

概述

Learn Social Studies UI Kit for React

Purpose

This skill standardizes Learn Social Studies visual design across React interfaces.

It is intended for:

  • dashboards
  • SaaS apps
  • admin panels
  • forms
  • landing pages
  • internal tools
  • educational product interfaces

Apply this skill when a React project needs consistent Learn Social Studies branding,

reusable styling primitives, theme support, and developer-friendly UI conventions.

Brand Intent

The resulting interface must feel:

  • clear
  • modern academic
  • trustworthy
  • structured
  • lightweight
  • brand-consistent

Theme Model

  • Default theme: light
  • Optional override: dark
  • Theme is controlled with the data-theme attribute on
  • Do not use localStorage
  • Theme state should stay in app memory unless the host project already has an approved persistence layer

Typography

  • Headings: Poppins
  • Body/UI text: Montserrat
  • Code, tokens, IDs: JetBrains Mono or Fira Code

Brand Color Rules

  • Primary blue is the main action color
  • Deep blue is for hierarchy and high-contrast supporting elements
  • Gold is for accent and CTA emphasis only
  • Warning uses amber, not brand gold
  • Do not use pure black #000000
  • Do not use yellow #F3B723 as a page, card, panel, or alert background surface
  • Do not use gradients on buttons or cards

Developer Rules

When applying this skill:

  1. Keep business logic untouched.
  2. Do not change routing, data flow, API calls, or component behavior unless required for theme toggling.
  3. Move reusable visual values into CSS variables.
  4. Normalize buttons, inputs, cards, badges, tables, and modals.
  5. Use reusable variants instead of page-specific one-off styles.
  6. Avoid hardcoded colors when a token exists.
  7. Preserve markup structure where possible.
  8. Keep the UI clean, readable, and scalable.

Recommended File Layout

src/
  styles/
    tokens.css
    base.css
    components.css
  theme/
    ThemeProvider.tsx
    useTheme.ts
  components/
    Button/
    Input/
    Card/
    Badge/

Font Loading

Add to the root HTML document:

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet">

Implementation Instructions

Use the template files included with this skill as the source of truth:

  • templates/react/src/styles/tokens.css
  • templates/react/src/styles/base.css
  • templates/react/src/styles/components.css
  • templates/react/src/theme/ThemeProvider.tsx
  • templates/react/src/theme/useTheme.ts
  • templates/react/src/components/*

If the target project already has its own component library:

  • map the project components to these same tokens and variant rules
  • keep variant names consistent: primary, secondary, accent
  • keep status names consistent: success, warning, error, info

Output Expectation

After applying this skill, the project should have:

  • light theme by default
  • optional dark theme
  • reusable design tokens
  • consistent typography
  • consistent button/input/card/badge patterns
  • maintainable UI styling without changing product logic

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 08:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 688 📥 331,715
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 199 📥 68,361
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,210