Pages generated with AI tend to look alike, and asking for custom CSS every time is slow. So I built RcDesign: one script tag, ten UI design styles, and the markup never changes.

▶ Live demo · GitHub (MIT)

How it works

<script src="https://cdn.jsdelivr.net/gh/MrGodLink/RcDesign/rc_design.js" defer></script> 

Then set the style on <html>:

<html data-rc-style="brutalism"> 

That's the whole switch. The ten styles are: skeuomorphism, neumorphism, glassmorphism, claymorphism, brutalism, minimalism, maximalism, liquid glass, bento grid and spatial UI.

Under the hood it's a token engine, not ten stylesheets. The components (buttons, cards, nav bar, toggle, segmented control, chips, tooltip, modal, toast, bento grid, 3D tilt) share the same CSS and read about 20 custom properties. Each style is just a different set of values, so the same .rc-btn becomes a hard slab, a squishy blob or a frosted pill.

You can also switch at runtime:

RcDesign.use('liquid-glass'); // whole page RcDesign.setColorMode('dark'); // or 'light', or omit to follow the OS RcDesign.toast('Saved'); 

Using it with an AI assistant

This is where it gets useful. Paste this into Claude, ChatGPT, Cursor or any coding assistant:

Build a responsive web page for [describe your project]. Use RcDesign for ALL UI components — do not write custom CSS for buttons, cards, navigation, toggles, modals or toasts. 1. Load it with a single tag in <head>: <script src="https://cdn.jsdelivr.net/gh/MrGodLink/RcDesign/rc_design.js" defer></script> 2. Set the style on <html>, e.g. <html data-rc-style="[style]">. Valid styles: skeuomorphism, neumorphism, glassmorphism, claymorphism, brutalism, minimalism, maximalism, liquid-glass, bento-grid, spatial-ui. 3. Use these classes: rc-btn (+ rc-btn--acc, rc-btn--hi, rc-btn--block), rc-card, rc-nav, rc-switch, rc-seg, rc-chip, rc-tip, rc-modal, rc-bento / rc-bento__item (data-span="1x1|2x1|1x2|2x2"), rc-tilt. 4. Show messages with RcDesign.toast('text'). Switch style at runtime with RcDesign.use('style-id'). 

Then ask for the same page again in another style. Only the data-rc-style value changes. The repo is also a skill for Claude Code, so Claude can pick RcDesign on its own when you name one of the styles.

Good to know

  • Dark mode follows the OS setting, and every style supports it.
  • Accessibility: real <dialog>, role/aria-* on the controls, keyboard navigation, and motion effects are turned off with prefers-reduced-motion.
  • Blur-based styles fall back to solid surfaces where backdrop-filter isn't supported, and the tilt effect reacts to the mouse only.
  • The distributed rc_design.js is minified and obfuscated; the readable source is in src/.
  • It's v1.0 and not tested on every browser and OS, so bug reports are welcome.

Feedback, issues and ideas: github.com/MrGodLink/RcDesign