Comments (4)
Awesome mind closing the issue?
from classlesscss.
Hey, this looks like it's because you're missing the classless.css
.
See the below snippet which does work, by flipping from the initial dark
theme to medium
:
<!DOCTYPE html>
<html data-theme='dark'>
<head>
<link id="maincss" rel="stylesheet" href="https://classless.de/classless.css">
</link>
<link id="maincss" rel="stylesheet" href="https://classless.de/addons/themes.css">
</link>
</head>
<body>
<script language="javascript">
window.onload = function (e) {
console.log(document.documentElement.getAttribute("data-theme"));
console.log("changing theme");
document.documentElement.setAttribute("data-theme", "medium");
}
</script>
<h1>Hi</h1>
</body>
</html>
from classlesscss.
I guess this should work. Maybe it would be useful to include a minimal template in this repo?
from classlesscss.
Many thanks, @jamietanna, now it works!
from classlesscss.
Related Issues (17)
- <aside> element overlaps navigation bar HOT 1
- Mobile navigation caret expansion doesn't rollup on second toggle HOT 3
- Add info icon modal HOT 2
- Host Google Fonts ourselves? HOT 11
- media query too wide on iphone 12 mini HOT 2
- this is a beautiful beautiful beautiful classless framework! HOT 1
- Move Footer To The Bottom HOT 5
- Inline img tags within a p tag doesn't float to the right side HOT 1
- Here is example use in a CMS:
- Dark theme improvement
- how to make it wider? HOT 2
- Import Google Font in CSS file
- Make grid and cards classless HOT 2
- sans-serif HOT 1
- Make img tags scale without figure tag HOT 2
- Interested in classless tooltips? HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classlesscss.