Use this skill when working with CSS, SCSS, design system, responsive layouts, or styling. Covers Tailwind CSS utilities, Bootstrap 5 components, SCSS architecture, fonts, and responsive breakpoints.
This project uses a combination of SCSS, Tailwind CSS, and Bootstrap 5 for styling. Source files are in src/scss/ and compile to wp-content/themes/sardynkibiznesu-2.0/assets/.
src/scss/main.scss - Main frontend stylesheetsrc/scss/admin.scss - Admin panel stylesheettailwind.config.js - Tailwind configurationsrc/scss/global/ - Typography, fonts, alignmentssrc/scss/components/ - UI components (buttons, forms, cards)src/scss/objects/ - Page layouts (archive, sidebar)src/scss/vendors/ - Bootstrap and third-party importssrc/scss/
├── main.scss # Entry point - imports all partials
├── admin.scss # Admin-specific styles
├── global/
│ ├── _fonts.scss # Font face definitions
│ ├── _typography.scss
│ └── _alignments.scss
├── objects/
│ ├── _archive.scss # Archive page layout
│ ├── _sidebar.scss # Sidebar layout
│ └── _comments.scss # Comments section
├── components/
│ ├── _buttons.scss # Button styles
│ ├── _header.scss # Header component
│ ├── _footer.scss # Footer component
│ ├── _navigation.scss
│ ├── _forms.scss
│ ├── _article.scss
│ ├── _faq.scss
│ └── _tables.scss
└── vendors/
├── _bootstrap.scss # Bootstrap imports
└── _photoswipe.scss
// 1. Vendors (Bootstrap, third-party)
@import 'vendors/bootstrap';
// 2. Global settings
@import 'global/fonts';
@import 'global/typography';
@import 'global/alignments';
// 3. Objects (layouts)
@import 'objects/archive';
@import 'objects/sidebar';
// 4. Components (UI elements)
@import 'components/buttons';
@import 'components/header';
@import 'components/navigation';
Tailwind is integrated via PostCSS. Use utility classes directly in HTML/PHP:
<div class="flex items-center justify-between mt-4 mb-8">
<h2 class="text-2xl font-bold">Title</h2>
<button class="px-4 py-2 bg-blue-500 text-white rounded">Action</button>
</div>
Bootstrap 5.2.3 is available. Import specific components:
// In vendors/_bootstrap.scss
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";
@import "~bootstrap/scss/grid";
@import "~bootstrap/scss/buttons";
@import "~bootstrap/scss/modal";
@import "~bootstrap/scss/accordion";
Project uses Montserrat and Font Awesome:
// In global/_fonts.scss
@font-face {
font-family: 'Montserrat';
src: url('../fonts/montserrat/Montserrat-Regular.woff2') format('woff2'),
url('../fonts/montserrat/Montserrat-Regular.woff') format('woff');
font-weight: 400;
font-style: normal;
font-display: swap;
}
// In components/_component-name.scss
.component-name {
// Base styles
padding: 1rem;
background: #fff;
// Child elements
&__header {
font-size: 1.25rem;
font-weight: 600;
}
&__content {
margin-top: 0.5rem;
}
// States
&--active {
border-color: #007bff;
}
// Responsive
@media (min-width: 768px) {
padding: 2rem;
}
}
Tailwind breakpoints (from tailwind.config.js):
sm: 640pxmd: 768pxlg: 1024pxxl: 1280px2xl: 1536pxBootstrap breakpoints:
sm: 576pxmd: 768pxlg: 992pxxl: 1200pxxxl: 1400px.block__element--modifier patternsrc/scss/components/src/scss/npm run development