@@ -47,42 +47,42 @@ Just write semantic HTML and launch.css will style it for you. Add data attribut
4747
4848``` html
4949<!DOCTYPE html>
50- <html lang =" en" data-theme = " dark " >
51- <head >
52- <meta charset =" UTF-8" />
53- <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
54- <title >My launch.css Site</title >
55- </head >
56- <body data-layout =" website" >
57- <header >
58- <nav >
59- <a href =" /" >My Site</a >
60- <menu >
61- <li ><a href =" /" >Home</a ></li >
62- <li ><a href =" /about" >About</a ></li >
63- <li ><a href =" /contact" >Contact</a ></li >
64- </menu >
65- </nav >
66- </header >
67- <main >
68- <section >
69- <h1 >Welcome to my site</h1 >
70- <p >Built with launch.css - no classes needed!</p >
71- <button >Click me</button >
72- </section >
73- </main >
74- </body >
50+ <html lang =" en" >
51+ <head >
52+ <meta charset =" UTF-8" />
53+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
54+ <title >My launch.css Site</title >
55+ </head >
56+ <body data-layout =" website" >
57+ <header >
58+ <nav >
59+ <a href =" /" >My Site</a >
60+ <menu >
61+ <li ><a href =" /" >Home</a ></li >
62+ <li ><a href =" /about" >About</a ></li >
63+ <li ><a href =" /contact" >Contact</a ></li >
64+ </menu >
65+ </nav >
66+ </header >
67+ <main >
68+ <section >
69+ <h1 >Welcome to my site</h1 >
70+ <p >Built with launch.css - no classes needed!</p >
71+ <button >Click me</button >
72+ </section >
73+ </main >
74+ </body >
7575</html >
7676```
7777
7878## Theme Switching
7979
80- Toggle between light and dark themes with a simple attribute change :
80+ Support light and dark themes with seamless switching using ` color-scheme ` css properties :
8181
82- ``` html
83- < html data-theme = " light " >
84- <!-- or -->
85- < html data-theme = " dark" >
82+ ``` css
83+ color-scheme : only dark;
84+ // pr
85+ color-scheme : only dark;
8686```
8787
8888## Layout Options
@@ -92,7 +92,6 @@ launch.css provides two main layout options:
9292```html
9393<!-- Standard website layout -->
9494<body data-layout ="website">
95-
9695<!-- Dashboard/app layout with fixed header -->
9796<body data-layout ="dashboard">
9897```
0 commit comments