2025-12-09 00:58:53 +07:00
|
|
|
# terminal.css
|
|
|
|
|
|
2025-12-09 01:40:06 +07:00
|
|
|
<img width="3782" height="2296" alt="image" src="https://github.com/user-attachments/assets/b86f62ed-0fff-428a-8285-fec57b6f3332" />
|
|
|
|
|
|
2025-12-09 01:02:20 +07:00
|
|
|
|
|
|
|
|
|
2025-12-09 00:58:53 +07:00
|
|
|
A modern CSS framework for terminal-style websites.
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
### CDN Installation
|
|
|
|
|
|
|
|
|
|
Add these links to your HTML file:
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<!-- In your <head> section -->
|
2025-12-09 01:23:27 +07:00
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.2/index.css" />
|
2025-12-09 00:58:53 +07:00
|
|
|
|
|
|
|
|
<!-- Before closing </body> tag -->
|
|
|
|
|
<!-- [Optional: Only for toast, FAQ component] -->
|
2025-12-09 01:23:27 +07:00
|
|
|
<script src="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.2/index.js"></script>
|
2025-12-09 00:58:53 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Optional: Add Tailwind CSS for layout utilities (flex, grid, spacing)
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## How to Use Components
|
|
|
|
|
|
|
|
|
|
To use any component, simply:
|
|
|
|
|
|
2025-12-09 01:39:20 +07:00
|
|
|
1. Go to the [Components page](https://letieu.github.io/terminal.css/)
|
2025-12-09 00:58:53 +07:00
|
|
|
2. Find the component you want to use
|
|
|
|
|
3. Press <kbd>F12</kbd> to open DevTools
|
|
|
|
|
4. Inspect the component and copy the HTML code
|
|
|
|
|
5. Paste it into your project
|
|
|
|
|
|
|
|
|
|
### Complete HTML Template
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<title>My Terminal App</title>
|
|
|
|
|
|
|
|
|
|
<!-- terminal.css Stylesheet -->
|
2025-12-09 01:23:27 +07:00
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.2/index.css">
|
2025-12-09 00:58:53 +07:00
|
|
|
|
|
|
|
|
<!-- Optional: Tailwind for layout utilities -->
|
|
|
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<h1 class="title is-1 has-text-primary">Hello Terminal!</h1>
|
|
|
|
|
<button class="button is-primary">Click Me</button>
|
|
|
|
|
|
|
|
|
|
<!-- terminal.css JavaScript -->
|
2025-12-09 01:23:27 +07:00
|
|
|
<script src="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.2/index.js"></script>
|
2025-12-09 00:58:53 +07:00
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Customization
|
|
|
|
|
|
|
|
|
|
Override CSS variables to customize the theme:
|
|
|
|
|
|
|
|
|
|
```css
|
|
|
|
|
/* In your custom stylesheet */
|
|
|
|
|
:root {
|
|
|
|
|
/* Change primary color */
|
|
|
|
|
--primary: #00ff00;
|
|
|
|
|
|
|
|
|
|
/* Change background */
|
|
|
|
|
--terminal-bg: #0a0a0a;
|
|
|
|
|
|
|
|
|
|
/* Change font */
|
|
|
|
|
font-family: 'Courier New', monospace;
|
|
|
|
|
|
|
|
|
|
/* Other variables */
|
|
|
|
|
--terminal-fg: #f0f0f0;
|
|
|
|
|
--danger: #ff5555;
|
|
|
|
|
--success: #50fa7b;
|
|
|
|
|
--warning: #f1fa8c;
|
|
|
|
|
--info: #8be9fd;
|
|
|
|
|
--border-color: #333333;
|
|
|
|
|
--surface: #1a1a1a;
|
|
|
|
|
--muted: #6c757d;
|
|
|
|
|
}
|
|
|
|
|
```
|