-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't understand how to get the dark theme #37
Comments
In the :root {
--global-font-size: 15px;
--global-line-height: 1.4em;
--global-space: 10px;
--font-stack: Menlo, Monaco, Lucida Console, Liberation Mono,
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace,
serif;
--mono-font-stack: Menlo, Monaco, Lucida Console, Liberation Mono,
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace,
serif;
--background-color: #222225;
--page-width: 60em;
--font-color: #e8e9ed;
--invert-font-color: #222225;
--secondary-color: #a3abba;
--tertiary-color: #a3abba;
--primary-color: #62c4ff;
--error-color: #ff3c74;
--progress-bar-background: #3f3f44;
--progress-bar-fill: #62c4ff;
--code-bg-color: #3f3f44;
--input-style: solid;
--display-h1-decoration: none;
} This provides the dark theme. |
Thank you ! |
I tried what you say, but it's not working, example here :https://bbsynth.netlify.app/ index.astro
|
Your Astro combined CSS file has the dark theme before the main Terminal CSS (default light theme). This is odd given you are importing before establishing the If I add the Your Your <!DOCTYPE html>
<html lang="fr">
<head>
<title>Terminal CSS</title>
</head>
<body class="terminal">
<header id="header" class="container">
<header class="terminal-logo">
<div class="logo terminal-prompt"><a href="https://bbsynth.netlify.app" class="no-style">BBSynth</a></div>
</header>
</header>
</body>
</html> Your index.astro should look like this: ---
import "terminal.css";
---
<style>
:root {
--global-font-size: 15px;
--global-line-height: 1.4em;
--global-space: 10px;
--font-stack: Menlo, Monaco, Lucida Console, Liberation Mono,
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace,
serif;
--mono-font-stack: Menlo, Monaco, Lucida Console, Liberation Mono,
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace,
serif;
--background-color: #222225;
--page-width: 60em;
--font-color: #e8e9ed;
--invert-font-color: #222225;
--secondary-color: #a3abba;
--tertiary-color: #a3abba;
--primary-color: #62c4ff;
--error-color: #ff3c74;
--progress-bar-background: #3f3f44;
--progress-bar-fill: #62c4ff;
--code-bg-color: #3f3f44;
--input-style: solid;
--display-h1-decoration: none;
}
</style>
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Terminal CSS</title>
</head>
<body class="terminal">
<header id="header" class="container">
<header class="terminal-logo">
<div class="logo terminal-prompt"><a href="https://bbsynth.netlify.app" class="no-style">BBSynth</a></div>
</header>
</header>
<article class="container">
<div>TEST</div>
</article>
</body>
</html>
|
I didn't found any document for using the dark theme used on the demo website
The text was updated successfully, but these errors were encountered: