mw-design
v1.0.4
Published
My personal UI library built with styled-component, the goal of it is to be as slim and minimum as possible, but at the same time able to be themed.
Readme
MW-Design
A minimal, themeable React design system with Storybook documentation.
About
MW-Design is a personal design system focused on simplicity and theming. It provides a set of React components with CSS custom properties (CSS variables) for complete theme customization.
Getting Started
View the Design System
Open the Storybook documentation:
npm run devVisit http://localhost:6006 to explore components, interact with them, and see theme options.
Development
Install dependencies:
npm installStart Storybook dev server:
npm run devBuild
Generate a static Storybook site:
npm run buildOutput is generated in storybook-static/.
Theming
MW-Design components are fully themed with CSS custom properties. Select themes from the toolbar (circle icon) in Storybook.
Available Themes
- Light: Light background, dark text
- Dark: Dark background, light text
CSS Variables
Components use the following design tokens:
--mwds-background: Background color--mwds-text: Text color--mwds-primary: Primary action color--mwds-secondary: Secondary action color--mwds-accent: Accent color
Components
Button
A flexible button component for user interactions.
Features:
- Multiple sizes (small, medium, large)
- Disabled state
- Full HTML button attribute support
Explore in Storybook: Button stories
Scripts
npm run dev- Start Storybook dev servernpm run build- Build static Storybook sitenpm run lint- Run ESLintnpm start- Serve built Storybook (requires build first)
