style.scss
At Terra, style.scss is the main entry point for all styles in a project. Every global style, utility, and component stylesheet is imported from this file, making it the single source of truth for styling.
How it’s used across projects
Section titled “How it’s used across projects”-
WordPress projects
- In most cases, styles are loaded globally through style.scss.
- You can see a reference implementation in our starter kit
-
Nuxt or Astro projects
- In these setups, style.scss is usually imported at the layout level (
layout.vueorlayout.astro) so styles are applied consistently across all pages.
- In these setups, style.scss is usually imported at the layout level (
Import structure
Section titled “Import structure”The file is organized by responsibility, starting with global foundations and moving toward more specific components:
//* Reset, GC@import "@scss/framework/_var/_vars.scss";@import "@scss/framework/_mixins/mixins.scss";@import '@terrahq/gc/library';@import '@terrahq/wysiwyg/wordpress';@import '@scssFoundation/reset/_reset.scss';@import '@scssFoundation/_foundation.scss';@import '@scssUtilities/_utilities.scss';@import "@scss/global-components/vars.scss";
//* Preloader@import '@scssComponents/preloader/_c--preloader-a.scss';
//* Transition@import '@scssComponents/transition/_c--transition-a.scss';Organizing new styles
Section titled “Organizing new styles”When adding new styles, always group imports logically and consistently:
- By type: global styles, utilities, and individual components
- By functionality: for example, preloader, transitions, lazy loading, etc.

This approach keeps style.scss readable and makes the codebase easier to scale and maintain over time.
Knowledge Check
Test your understanding of this section
Loading questions...