tacit
CSS framework for dummies, without a single CSS class: nicely renders properly formatted HTML5 pages
Top Related Projects
Modern CSS framework based on Flexbox
The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
A modern alternative to CSS resets
Functional css for humans
The classless CSS reset (perfect for Communists).
Quick Overview
Tacit is a CSS framework that provides a minimalist and semantic approach to web design. It aims to create clean and accessible websites without the need for complex class names or extensive CSS customization.
Pros
- Minimalist Approach: Tacit follows a minimalist design philosophy, focusing on simplicity and readability rather than extensive styling.
- Semantic HTML: The framework encourages the use of semantic HTML elements, which improves accessibility and maintainability.
- Responsive Design: Tacit is designed to be responsive, adapting to different screen sizes and devices.
- Easy to Use: The framework has a small footprint and requires minimal configuration, making it easy to integrate into new or existing projects.
Cons
- Limited Customization: While Tacit provides a solid foundation, it may not offer the same level of customization as other CSS frameworks, which could be a drawback for projects with specific design requirements.
- Lack of Community Support: Compared to more popular CSS frameworks, Tacit has a smaller community, which could mean fewer resources and less active development.
- Potential Compatibility Issues: As a minimalist framework, Tacit may not be compatible with all third-party libraries or components, which could require additional effort to integrate.
- Steep Learning Curve for Beginners: The minimalist approach and emphasis on semantic HTML may present a steeper learning curve for developers who are new to web development.
Code Examples
Tacit is a CSS framework, so it does not provide any code examples. Instead, it is used by applying specific CSS classes to HTML elements.
Getting Started
To get started with Tacit, follow these steps:
-
Download the latest version of the Tacit CSS file from the GitHub repository.
-
Include the Tacit CSS file in your HTML document's
<head>
section:
<link rel="stylesheet" href="path/to/tacit.css">
- Start using Tacit by applying the appropriate CSS classes to your HTML elements. For example:
<header class="sticky">
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section>
<h1>Welcome to My Website</h1>
<p>This is a simple and clean website built with Tacit CSS.</p>
</section>
<section>
<h2>About Us</h2>
<p>We are a team of developers who believe in the power of minimalist design.</p>
</section>
</main>
<footer>
<p>© 2023 My Website. All rights reserved.</p>
</footer>
- Customize the styles further by overriding the default Tacit CSS classes or adding your own CSS rules as needed.
That's it! You've now set up your project with Tacit CSS and can start building a clean, semantic, and responsive website.
Competitor Comparisons
Modern CSS framework based on Flexbox
Pros of Bulma
- Bulma is a modern, responsive, and feature-rich CSS framework that provides a wide range of pre-built components and utilities.
- The framework has a large and active community, with extensive documentation and a wealth of resources available.
- Bulma's modular design allows for easy customization and integration with other libraries or frameworks.
Cons of Bulma
- Bulma's file size can be larger than Tacit, as it includes a more comprehensive set of features and components.
- The learning curve for Bulma may be steeper than Tacit, as it has a more complex API and a wider range of options to configure.
- Bulma's focus on providing a comprehensive set of features may make it less suitable for projects that require a more minimalist approach.
Code Comparison
Tacit:
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 16px;
line-height: 1.5;
color: #333;
}
Bulma:
body {
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #4a4a4a;
}
The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
Pros of Bootstrap
- Extensive documentation and community support
- Wide range of pre-built components and utilities
- Responsive design out of the box
Cons of Bootstrap
- Larger file size compared to Tacit
- Potential for over-styling and lack of customization
- Dependency on jQuery
Code Comparison
Bootstrap:
.btn {
display: inline-block;
font-weight: 400;
color: #212529;
text-align: center;
vertical-align: middle;
cursor: pointer;
padding: 0.375rem 0.75rem;
font-size: 1rem;
line-height: 1.5;
border-radius: 0.25rem;
}
Tacit:
button,
input[type="button"],
input[type="submit"] {
background-color: #eee;
border: none;
border-radius: 3px;
color: #333;
cursor: pointer;
display: inline-block;
font-size: 1em;
padding: 0.5em 1em;
text-decoration: none;
}
A modern alternative to CSS resets
Pros of Normalize.css
- Normalize.css provides a consistent baseline for styling across different browsers, ensuring a more predictable and reliable user experience.
- It includes a comprehensive set of CSS rules that address common cross-browser inconsistencies, such as font sizes, margins, and default styles.
- Normalize.css is widely adopted and well-maintained, with a large community of contributors and users.
Cons of Normalize.css
- Normalize.css is a larger library compared to Tacit, which may result in a slightly larger file size and increased initial load time for your project.
- The comprehensive nature of Normalize.css may include styles that are not needed for your specific project, leading to potential bloat.
Code Comparison
Normalize.css:
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
Tacit:
/* Tacit CSS Framework | https://github.com/yegor256/tacit */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 16px;
line-height: 1.5;
color: #333;
background-color: #fff;
}
Functional css for humans
Pros of Tachyons
- Modular Design: Tachyons follows a modular approach, allowing developers to include only the necessary styles, resulting in a smaller file size and faster load times.
- Responsive Design: Tachyons provides a comprehensive set of responsive utility classes, making it easier to create responsive layouts.
- Extensive Documentation: Tachyons has excellent documentation, including detailed explanations of its features and usage examples.
Cons of Tachyons
- Steep Learning Curve: Tachyons uses a unique class naming convention, which can be challenging for developers unfamiliar with the framework.
- Lack of Customization: Tachyons is primarily focused on providing utility classes, which can make it difficult to customize the overall look and feel of a project.
- Dependency on Utility Classes: Tachyons heavily relies on utility classes, which can lead to verbose and less semantic HTML.
Code Comparison
Tachyons:
<div class="flex items-center justify-center h-100">
<div class="pa4 bg-white shadow-5 br3">
<h1 class="f2 lh-title">Hello, Tachyons!</h1>
<p class="f4 lh-copy">This is a simple example using Tachyons.</p>
</div>
</div>
Tacit:
<div class="center">
<div class="padding-4 background-white shadow-5 border-radius-3">
<h1>Hello, Tacit!</h1>
<p>This is a simple example using Tacit.</p>
</div>
</div>
The classless CSS reset (perfect for Communists).
Pros of Marx
- More comprehensive styling, including additional elements like buttons and forms
- Offers a wider range of color options and customization
- Includes responsive design features out of the box
Cons of Marx
- Larger file size due to more extensive styling
- May require more overrides for custom designs
- Less focus on minimalism compared to Tacit
Code Comparison
Marx:
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
line-height: 1.6;
color: #212121;
}
Tacit:
body {
font-family: sans-serif;
padding: 2em;
margin: 0;
}
Marx provides more detailed default styling for the body element, including a more extensive font stack and specific color values. Tacit, on the other hand, keeps it simpler with a basic sans-serif font and minimal padding.
Both projects aim to provide classless CSS frameworks, but Marx offers more extensive styling options and customization, while Tacit focuses on simplicity and minimalism. The choice between the two depends on the specific needs of the project and the desired level of styling complexity.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
CSS Framework for Dummies
Tacit is a primitive CSS framework for dummies, like myself, who don't know anything about graphic design but want their web services to look edible. No classes, no layouts, just design plain and simple web pages compliant with HTML5, and they will look OK.
The details are here: yegor256.github.io/tacit
Simply add this to your HTML:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yegor256/tacit@gh-pages/tacit-css.min.css"/>
</head>
</html>
Otherwise, download tacit-css.min.css
and use it together with your HTML by adding the following:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="tacit-css.min.css"/>
</head>
</html>
Of course, it is responsive and mobile-friendly, but you have to add this line too:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
</html>
This blog post explains it in even more details: Tacit, a CSS Framework Without Classes.
Browser/OS Compatibility
The following list is of tested browsers for compatibility. We don't have any guarantees of compatibility for other browsers, but as soon as possible we will verify and add more to the list. Some of these browsers present minor issues that are reported in the our issues list.
Browser/OS | Version | Compatible |
---|---|---|
Chrome | >= 60 | Yes |
Firefox | >= 56 | Yes |
Safari | >= 11 | Yes |
Opera | >= 48 | Yes |
Edge | >= 14 | Yes |
Chrome (iOS) | >= 60 | Yes |
Safari (iOS) | - | Yes |
Internet Explorer | >= 11 | Yes |
Built on top of Tacit framework
Tacit's goal is to be super simple and always with the same look-and-feel. If you want something more custom, like a different theme, feel free to make it on top of Tacit. Here are some frameworks built on top of Tacit:
- kacit Kacit is the Tacit CSS classless framework but with a yellow accent and Georgia font
- Bahunya is a CSS framework with responsive typography, navbar, syntax highlighting, and much more, inspired by Tacit
Usecases of Tacit framework
- jare.io Free and instant CDN
- wring.io GitHub notification filtering hosted inbox
- wts.zold.io Web Wallets of Zold cryptocurrency
- jpeek.org Java projects code cohesion analyzer
- socatar.com Web service to use profile photos in your page
- filfreire.com @filfreire's personal blog on software testing and development
- moneeee joke app to know how much money you're making during a boring meeting
- golang.cafe Go (golang) job board with no recruiters and clear salary ranges.
- tinyfts Very small standalone full text search HTTP/SCGI server
How to contribute
Fork repository, make changes, send us a pull request. We will review
your changes and apply them to the master
branch shortly, provided
they don't violate our quality standards. To avoid frustration, before
sending us your pull request please run full Grunt build:
npm install
grunt
To develop it locally, open index.html
in a browser and then run:
npm run dev
Now you can make changes to .scss
files and refresh the page in the browser.
CSS will be recompiled automatically on every change you make.
Logo
Tacit's logo was designed by Akshay Vinchurkar (@akshayvinchurkar)
Top Related Projects
Modern CSS framework based on Flexbox
The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
A modern alternative to CSS resets
Functional css for humans
The classless CSS reset (perfect for Communists).
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot