🎽
Ciseco - Hydrogen Shopify's Headless storefront
Preview demoBuy Ciseco
  • 💝A few words of thanks
  • 🌟Hydrogen and Oxygen fundamentals
  • 👋Getting started
  • Getting started
    • Step 1. Getting started with Ciseco - Hydrogen and Oxygen
    • Step 2. Import Definitions and demo entries.
    • Step 3. Deploy to Oxygen
    • Step 4. Setup for using Customer Account API (/account route)
    • Step 5. Congratulations!
  • Ciseco with Development store
    • 🐣Ciseco test with development store
    • Step 1. Install the required apps
    • Step 2. Setup environment variables.
    • Step 3. Setup for using Customer Account API (/account route)
    • Step 4. Install node_module and run on localhost
    • Step 5. Import Definitions and demo entries.
    • Step 6. Deployments
    • Step 6.1. Deployments with GitHub
    • Redirect traffic to the Hydrogen channel
  • Ciseco's features
    • Display the color variant options as image swatch
    • Wishlist
    • Header mega menu
    • Footer menus
    • Product reviews with Okendo
    • Smart filter feature
    • Use the Shopify checkout
    • Customize pages and sections?
    • Add new page
    • Ciseco metaobject definitions and metafield definitions
      • 1 - Product Metafield definitions and Collection Metafield definitions
      • 2 - Link, Social
      • 3 - Hero Item, Section | Hero, Section | HeroSlider
      • 4 - Client Say, Section | ClientsSay
      • 5 - Section | LatestBlog
      • 6 - Section | GridProductsAndFilter
      • 7 - Collection Group, Section | TabsCollectionsByGroup
      • 8 - Section | ImageWithText
      • 9 - Section | Steps
      • 10 - Section | ProductsSlider
      • 11 - Section | CollectionsSlider
      • 12 - Route
    • Custom color, fonts
    • Favicon & Seo
    • Internationalization with Shopify Markets
    • ⁉️Getting the problem while importing demo metaobjects entries.
  • Folder Structure
  • Component Structure
  • Sources And Credits
  • Support
  • Change log
    • Update project
    • Change log
Powered by GitBook
On this page
  • 1- Custom colors
  • 2- Custom fonts

Was this helpful?

  1. Ciseco's features

Custom color, fonts

Custom color, fonts

Previous12 - RouteNextFavicon & Seo

Last updated 1 year ago

Was this helpful?

1- Custom colors

We use CSS variables for 3 main theme colors: Primary color, Secondary color, and Neutrals color, following the .

You can find them in the app/styles/app.css file

:root {

  /* For rgb(240 249 255) */
  --c-primary-50: 240, 249, 255;
  --c-primary-100: 224, 242, 254;
  ...
  --c-primary-900: 12, 74, 110;

  --c-secondary-50: 240, 253, 244;
  ...
  --c-secondary-900: 20, 83, 45;

  --c-neutral-50: 249, 250, 251;
  ...
  --c-neutral-900: 17, 24, 39;
}

Primary, Secondary color:

These are the splashes of color that should appear the most in your UI, and are the ones that determine the overall "look" of the site. Use these for things like primary actions, links, navigation items, icons, accent borders, or text you want to emphasize.

Neutrals color:

These are the colors you will use the most and will make up the majority of your UI. Use them for most of your text, backgrounds, and borders, as well as for things like secondary buttons and links.

How to custom color?

You just need to change the color values in those CSS variables.

  :root {
    /* For rgb(255 115 179 / <alpha-value>) */
    --color-primary-50: 255 115 179;

    /* For hsl(198deg 93% 60% / <alpha-value>) */
    --color-primary-50: 198deg 93% 60%;

    /* For rgba(255, 115, 179, <alpha-value>) */
    --color-primary-50: 255, 115, 179;
  }

2- Custom fonts

We use css variables for 2 main theme fonts: Display fonts and Body font

:root {
  --font-display: Poppins;
  --font-body: Poppins;
}

Display font:

User for heading tag: H1 to H5 and other title tags, font size bigger than 16px

Body font:

User for main font smaller than 14px

How to custom fonts?

  1. Add your new font folder to the app/styles/fonts/ folder.

  2. Go to the app/styles/custom_font.css file

  3. Customize @font-face with your font

    @font-face {
      font-family: Your_Font;
      font-weight: 600;
      src: url('./fonts/Your_Font/Your_xxxx-SemiBold.ttf');
    }
    
    :root {
      --font-display: Your_Font;
      --font-body: Your_Font;
    }

When defining your colors this way, make sure that the format of your CSS variables is correct for the color function you are using. You’ll want to use spaces if using the modern , and commas if using legacy functions like rgba or hsla:

Tailwindcss style
space-separated syntax