Skip to content
/ defaultCSS Public template

CSS starting point that includes minimal styling for the most used HTML tags. Responsive & dark mode included.

License

Notifications You must be signed in to change notification settings

janbsc4/defaultCSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to Use defaultCSS

DefaultCSS is a CSS starting point that includes a minimal styling for the most used html tags. No tailwind, sass or bootstrap needed. Pure CSS. Demo here.

Includes:

  • Automatic dark mode
  • Mobile friendly
  • Easy to understand and change custom variables at the start

Quick Start

Add this line in your HTML's <head> section:

<link rel="stylesheet" href="https://janbsc4.github.io/defaultCSS/default.css">

That's it. Yes, really.

Alternative Methods

Local Download

  1. Download the CSS file:
    curl -O https://janbsc4.github.io/defaultCSS/default.css
  2. Place it in your project directory
  3. Link it in your HTML:
    <link rel="stylesheet" href="path/to/default.css">

Git Submodule

If your project uses Git:

git submodule add https://github.com/janbsc4/defaultCSS.git

Customization

To customize the default variables, add this to your own CSS file:

:root {
    --primary-color: #your-color;
    --hover-color: #your-hover-color;
    --text-color: #your-text-color;
    /* Add any other variables you want to override */
}

Browser Support

  • Works with all modern browsers
  • Includes dark mode support via prefers-color-scheme
  • Responsive design included

Note

Make sure to include this CSS file before any custom stylesheets to allow proper overriding of styles.

Contributing

Contributions are welcome! Here's how you can help improve the default CSS:

  1. Fork the repository on GitHub
  2. Create a new branch for your feature:
    git checkout -b feature/your-feature-name
  3. Make your changes
  4. Test your changes thoroughly
  5. Commit with a clear message:
    git commit -m "Add: brief description of your changes"
  6. Push to your fork:
    git push origin feature/your-feature-name
  7. Create a Pull Request with:
    • Clear description of changes
    • Screenshots if visual changes were made

Guidelines

  • Keep it extremely simple and maintainable
  • Follow existing code style
  • Test across different browsers and devices

Issues

Found a bug or have a suggestion? Open an issue on GitHub with:

  • Clear description
  • Steps to reproduce (for bugs)
  • Expected vs actual behavior
  • Screenshots if applicable

About

CSS starting point that includes minimal styling for the most used HTML tags. Responsive & dark mode included.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published