Top

SCSS structure


We are use 7-1 tire scss folder structure in our template

And to compile the scss files we have used libsass.

Follow the below given steps if you want to use scss for styling you site.

Step 1: Installing django-sass-processor

Install libsass by using the below given command.

pip install libsass django-compressor django-sass-processor

step 2: Check Libsass

Make sure that it is installed using this command:

pip show libsass

Step 3: Configuration

After installing the package add it to the INSTALLED APPS in settings.py.

INSTALLED_APPS = [
  ...
  ...
  'sass_processor',
]

And add configuration for STATICFILES_FINDERS in settings.py.

STATICFILES_FINDERS = [
  'django.contrib.staticfiles.finders.FileSystemFinder',
  'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  'sass_processor.finders.CssFinder',
]

Now to store the compiled css files add STATIC_ROOT AND SASS_PROCESSOR_ROOT in settings.py. Change the file path as per your needs.

STATIC_ROOT = BASE_DIR / 'static'
  
SASS_PROCESSOR_ROOT = STATIC_ROOT

Step 4: Using Scss Files in html

We have now configured our project to use scss files, now where we add the link in html file, we have to add it in this way:

<link rel="stylesheet" type="text/css" href="{% sass_src 'assets/scss/style.scss' %}" />
  • scss
    • base
      • _reset.scss // customize new classes same like bootstrap class
      • _typography.scss // common tyography scss
    • components // all components scss
      • _according.scss
      • _alert.scss
      • _avatars.scss
      • _badge.scss
      • _bookmark.scss
      • _breadcrumb.scss
      • _builders.scss
      • _buttons.scss
      • _card.scss
      • _color.scss
      • _datatable.scss
      • _datepicker.scss
      • _dropdown.scss
      • _form-builder.scss
      • _form-input.scss
      • _form-wizard.scss
      • _forms.scss
      • _form_builder-2.scss
      • _icons.scss
      • _list.scss
      • _loader.scss
      • _popover.scss
      • _print.scss
      • _radio.scss
      • _ribbon.scss
      • _scrollbar.scss
      • _switch.scss
      • _tab.scss
      • _table.scss
      • _touchspin.scss
      • _tour.scss
      • _tree.scss
      • _typeahead-search.scss
    • layout
      • _box-layout.scss
      • _footer.scss // customize footer scss
      • _grid.scss
      • _header.scss // customize header scss
      • _navs.scss
      • _rtl.scss // all rtl scss
      • _search.scss
      • _select2.scss
      • _sidebar.scss // customize sidebar scss
    • pages
      • _blog.scss
      • _bookmark-app.scss
      • _cart.scss
      • _chart.scss
      • _chat.scss
      • _checkout.scss
      • _comingsoon.scss
      • _contacts.scss
      • _dashboard_2.scss
      • _dashboard_default.scss
      • _ecommerce.scss
      • _email-application.scss
      • _errorpage.scss
      • _faq.scss
      • _file.scss
      • _gallery.scss
      • _general-widget.scss
      • _internationalization.scss
      • _job-search.scss
      • _jsgrid.scss
      • _kanban.scss
      • _knowledgebase.scss
      • _landing.scss
      • _language.scss
      • _learning.scss
      • _login.scss
      • _megaoption.scss
      • _order-history.scss
      • _page.scss
      • _pricing.scss
      • _progress.scss
      • _projectlist.scss
      • _social-app.scss
      • _task.scss
      • _timeline-v.scss
      • _timeliny.scss
      • _user-profile.scss
      • _wishlist.scss
    • themes
      • _dark-sidebar.scss
      • _dark.scss // Dark layout scss
      • _responsive.scss
      • _theme-customizer.scss // customizer scss only
      • _update.scss
    • utils
      • _variables.scss // settings variables here
    • vendors // All plugins scss folder and files here
      • animate.scss
      • aos.scss
      • bootstrap.scss
      • button-builder.scss
      • calendar.scss
      • chartist.scss
      • datatable-extension.scss
      • datatables.scss
      • date-picker.scss
      • daterange-picker.scss
      • dropzone.scss
      • echart.scss
      • feather-icon.scss
      • flag-icon.css
      • icofont.scss
      • image-cropper.scss
      • jkanban.scss
      • mapsjs-ui.scss
      • owlcarousel.scss
      • page-builder.scss
      • photoswipe.scss
      • prism.scss
      • range-slider.scss
      • rating.scss
      • scrollable.scss
      • scrollbar.scss
      • select2.scss
      • simple-mde.scss
      • sticky.scss
      • summernote.scss
      • svg-icon.scss
      • sweetalert2.scss
      • themify.scss
      • timepicker.scss
      • todo.scss
      • tour.scss
      • tree.scss
      • vector-map.scss
      • whether-icon.scss
      • animate
        • _animate.scss
      • aos
        • _animations.scss
        • _core.scss
        • _easing.scss
      • bootstrap
      • button-builder
        • _button-builder.scss
        • _button-builder-colorpicker.scss
      • calendar
        • _default.scss
        • _icon.scss
        • _tui-calendar.scss
        • _tui-date-picker.scss
        • _tui-time-picker.scss
      • chartist
        • _chartist-settings.scss
        • _chartist.scss
      • data-table
      • datatable-extension
      • date-picker
      • daterange-picker
      • date-time-picker
      • dropzone
      • echart
        • _reset.scss
      • feather-icon
        • _feather-icon.scss
      • flag-icon
        • _flag-icon-base.scss
        • _flag-icon-list.scss
        • _flag-icon-more.scss
      • icoicon
        • _icons.scss
      • image-cropper
        • _cropper-custom.scss
        • _cropper-main.scss
      • jsgrid
        • _jsgrid.scss
        • _jsgrid-theme.scss
      • owltheme
      • page-builder
        • _page-builder.scss
      • photoswipe
        • _photoswipe.scss
        • _photoswipe-default.scss
      • prism
        • _prism.scss
      • range-slider
        • _ion.modernskinRangeslider.scss
        • _ion.rangeSlider.scss
      • rating
      • scrollable
        • _scrollable.scss
      • scrollbar
        • _simplebar.scss
      • select2
      • simple-mde
        • _elements.scss
        • _simplemde.scss
      • sticky
        • _sticky.scss
      • summernote
        • _elements.scss
        • _fonts.scss
        • _summernote-bs4.scss
      • svg-icon
        • _svg-icon.scss
      • sweetalert2-master
        • _animations.scss
        • _mixins.scss
        • _toasts.scss
        • _variables.scss
      • themify
        • _core.scss
        • _extras.scss
        • _icons.scss
        • _mixins.scss
        • _path.scss
        • _themify-icons.scss
        • _variables.scss
      • time-picker
        • _timepicker.scss
      • todo
        • _todo.scss
      • tour
        • _tour.scss
      • tree
        • _tree-default.scss
        • _tree.scss
      • vector-map
        • _vector-map.scss
      • whether-icon
        • _whether-icon.scss
Tips

If you want to add new scss so you can add in _custom.scss file

because we are update template in future at that time you can take update template easily and use it

only one custom scss file you need to put from your side

Intelligent customization using scss


You can change in assets/scss/utils/_variables.scss file

Common settings

Variables set Content
$theme-body-font-color: #2f2f3b; whole themplate body font color set here
--font-color: #aaa3a0; whole themplate body font color set here

For font family

$font-nunito: Nunito; set Body font family
$font-roboto: Roboto; set second font family

For main color settings

--primary-color: #308e87; All color template settings
--secondary-color: #f39159;
--success-color: #3eb95f;
--info-color: #02a2b9;
--warning-color: #ea9200;
--danger-color: #e74b2b;
--light-color: #f5f5f5;

For sidebar settings

$sidebar-width: 253px; set sidebar width
$mobile-sidebar-width: 240px; set mobile sidebar width
$logo-shadow: 0px 4px 15px rgba(var(--black), 0.05); set logo shadow color
$sidebar-shadow: 0px 4px 40px rgba(var(--black), 0.1); set sidebar shadow color

For card settings

$card-padding: 20px; set common card spacing
$card-border: 1px solid rgba(var(--light-gray),1); set card border
$card-header-bg-color: rgba(var(--white),1); set card header background
$card-box-shadow: 0 0 50px rgba(var(--black), 0.03); set card-box-shadow