← 返回 Skills 市场
lssmanager

react design

作者 lssmanager · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
99
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install lss
功能描述
Applies the Learn Social Studies brand system to React interfaces using CSS variables, reusable component conventions, light theme by default, and dark theme...
使用说明 (SKILL.md)

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 \x3Chtml>
  • 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:

\x3Clink rel="preconnect" href="https://fonts.googleapis.com">
\x3Clink rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
\x3Clink 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
安全使用建议
This skill is internally consistent with being a React UI/theme kit. Before installing: verify you trust the opaque owner (no homepage provided), confirm the licensing terms in LICENSE.txt meet your needs, and ensure adding Google Fonts (fonts.googleapis.com) is acceptable for your environment. Review the templates for naming/token collisions with your existing styles and test theme toggling to confirm it doesn't require changes to app logic. There are no requests for secrets or system access in the package.
功能分析
Type: OpenClaw Skill Name: lss Version: 1.0.0 The skill bundle is a standard React UI kit for the 'Learn Social Studies' brand, providing design tokens, CSS styles, and basic components (Button, Input, Card, Badge). All files, including SKILL.md and the React templates, are consistent with the stated purpose of standardizing visual design and do not contain any indicators of malicious intent, data exfiltration, or harmful instructions.
能力标签
crypto
能力评估
Purpose & Capability
Name/description, SKILL.md, and the included templates (styles, ThemeProvider, components) align: this is a frontend React design system and the requested artifacts are appropriate for that purpose.
Instruction Scope
SKILL.md instructs the agent to apply styling and use the template files; it does not ask the agent to read system files, environment variables, or external credentials. The only external endpoint mentioned is Google Fonts for font loading, which is appropriate for font delivery.
Install Mechanism
There is no install spec (instruction-only plus shipped template files). All code is static frontend source (CSS/TSX) with no downloads or executable install steps; low install risk.
Credentials
No environment variables, credentials, or config paths are required. The skill does not request any secrets or unrelated access.
Persistence & Privilege
always is false and the SKILL.md explicitly discourages persistent theme storage (no localStorage). The skill does not request permanent agent privileges or modify other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lss
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lss 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the Learn Social Studies UI Kit for React. - Provides standardized CSS variables, typography, and color rules for Learn Social Studies branding. - Includes support for light theme by default with optional dark theme via the data-theme attribute. - Supplies reusable component conventions for buttons, inputs, cards, badges, and more. - Offers guidance on file layout, font loading, and usage instructions for consistent UI across React projects. - Emphasizes separation of style from business logic and encourages use of scalable, maintainable UI patterns.
元数据
Slug lss
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。

如何安装 react design?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lss」即可一键安装,无需额外配置。

react design 是免费的吗?

是的,react design 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

react design 支持哪些平台?

react design 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 react design?

由 lssmanager(@lssmanager)开发并维护,当前版本 v1.0.0。

💬 留言讨论