Skip to content

Commit a128205

Browse files
ssrdjan-fadvclaude
andcommitted
Release v6.0.0 - Modern CSS and Mobile-First Responsive Design
- Bumped version from 6.0.0-alpha to 6.0.0 - Added optional modern CSS stylesheet with mobile-first design - Added comprehensive CSS documentation to README - Features: container queries, dark mode, fluid typography, touch optimization 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 38379fc commit a128205

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,41 @@ useEffect(() => {
169169
The example app demonstrates a reusable chrome component that consumes the
170170
hook and renders the navigation UI for each step.
171171

172+
### Styling with Modern CSS
173+
174+
Version 6.0.0 includes an optional modern CSS stylesheet with mobile-first, responsive design:
175+
176+
```jsx
177+
// Import the optional stylesheet
178+
import 'react-multistep/styles';
179+
```
180+
181+
**Features:**
182+
- **Mobile-first responsive design** with container queries
183+
- **Automatic dark mode** support via `color-scheme: light dark`
184+
- **Fluid typography** using `clamp()` for adaptive sizing
185+
- **Touch-optimized** tap targets (44px minimum)
186+
- **CSS custom properties** for easy theming
187+
- **Modern CSS features**: `@layer`, `light-dark()`, logical properties
188+
- **Backward compatible**: Works without the CSS, enhanced with it
189+
190+
**Customization:**
191+
192+
All styles use CSS custom properties with sensible defaults:
193+
194+
```css
195+
:root {
196+
--multistep-primary: #1EAEDB;
197+
--multistep-inactive: silver;
198+
--multistep-bg: #f1f1f141;
199+
--multistep-spacing-md: clamp(2rem, 3vw, 4rem);
200+
--multistep-button-size: clamp(2.5rem, 5vw, 4rem);
201+
/* ...and more */
202+
}
203+
```
204+
205+
Override any variable in your own CSS to customize colors, spacing, or typography. The component adapts automatically to small screens (mobile) and large screens (desktop) without media queries using container queries.
206+
172207
## Instructions for local development
173208

174209
#### If you would like to explore further, contribute a PR or just try the included code example:

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-multistep-example",
33
"homepage": "https://srdjan.github.io/react-multistep",
4-
"version": "6.0.0-alpha",
4+
"version": "6.0.0",
55
"license": "MIT",
66
"scripts": {
77
"debug": "esbuild app.js --bundle --format=cjs --outfile=./bundle.js --loader:.js=jsx --sourcemap --preserve-symlinks",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-multistep",
3-
"version": "6.0.0-alpha",
3+
"version": "6.0.0",
44
"description": "Responsive ReactJS multistep form component",
55
"main": "dist/index.js",
66
"files": [

0 commit comments

Comments
 (0)