Skip to content

Instantly share code, notes, and snippets.

@syntholly
Last active June 7, 2022 05:22
Show Gist options
  • Save syntholly/f6e5f08f9b423d6f13add0338f3cbe36 to your computer and use it in GitHub Desktop.
Save syntholly/f6e5f08f9b423d6f13add0338f3cbe36 to your computer and use it in GitHub Desktop.
mkdir -p settings tools generic elements objects components utilities
cd settings && touch _settings.scss && echo "/** Main Settings Loader */\n" > _settings.scss && cd ..
cd tools && touch _tools.scss && echo "/** Main Tools Loader */\n" > _tools.scss && cd ..
cd generic && touch _generic.scss && echo "/** Main Generic Loader */\n" > _generic.scss && cd ..
cd elements && touch _elements.scss && echo "/** Main Elements Loader */\n" > _elements.scss && cd ..
cd objects && touch _objects.scss && echo "/** Main Objects Loader */\n" > _objects.scss && cd ..
cd components && touch _components.scss && echo "/** Main Components Loader */\n" > _components.scss && cd ..
cd utilities && touch _utilities.scss && echo "/** Main Utilities Loader */\n" > _utilities.scss && cd ..
echo "/** Main SCSS Loader */\n\n@import 'settings/_settings.scss'; // variables only - frequently updated early in the project.\n@import 'tools/_tools.scss'; // mixins, functions only - rarely expanded.\n@import 'generic/_generic.scss'; // reset, normalize, box-sizing (etc) only - rarely expanded.\n@import 'elements/_elements.scss'; // bare-elements only - rarely used after early stage in project.\n@import 'objects/_objects.scss'; // white-label / vanilla components only - rarely used.\n@import 'components/_components.scss'; // main components and design, frequently used.\n@import 'utilities/_utilities.scss'; // helper classes, rarely used after early stage in project." > main.scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment