Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SCSS preprocessor #39

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@

## Features

- [Sass] for a feature rich superset of CSS.
- [Tailwind CSS] for a sane and scalable CSS architecture.
- [Locomotive Scroll] for smooth scrolling with parallax effects.
- [Swup] for versatile and extensible page transition.
- [Prettier] for a formatted and easy to maintain codebase.
- [Nanostores] as state manager.
- [PostCSS] for a feature rich superset of CSS.
- [Tailwind CSS] for a sane and scalable CSS architecture.
- [Locomotive Scroll] for smooth scrolling with parallax effects.
- [Swup] for versatile and extensible page transition.
- [Prettier] for a formatted and easy to maintain codebase.
- [Nanostores] as state manager.

## Getting started

Make sure you have the following installed:

- [Node] — at least 20.14, the latest LTS is recommended.
- [NPM] — at least 8.0, the latest LTS is recommended.
- [Node] — at least 20.14, the latest LTS is recommended.
- [NPM] — at least 8.0, the latest LTS is recommended.

> 💡 You can use [NVM] to install and use different versions of Node via the command-line.

Expand Down Expand Up @@ -54,13 +54,13 @@ Inside of your project, you'll see the following folders and files:
│ ├── components/
│ │ └── Card/
│ │ ├── Card.astro
│ │ └── Card.scss
│ │ └── Card.css
│ ├── layouts/
│ │ └── Layout.astro
│ ├── pages/
│ │ └── index.astro
│ ├── styles/
│ │ └── main.scss
│ │ └── main.css
│ └── scripts/
│ ├── components/
│ ├── utils/
Expand Down Expand Up @@ -95,17 +95,16 @@ All commands are run from the root of the project, from a terminal:

## Documentation

- [Astro]
- [Locomotive Scroll]
- [Tailwind CSS]
- [Swup]
- [Prettier]
- [Nanostores]
- [Astro]
- [Locomotive Scroll]
- [Tailwind CSS]
- [Swup]
- [Prettier]
- [Nanostores]

[Astro]: https://docs.astro.build/en/getting-started/
[Tailwind CSS]: https://tailwindcss.com/docs/installation
[Locomotive Scroll]: https://scroll.locomotive.ca/docs
[Sass]: https://sass-lang.com/
[Swup]: https://swup.js.org/getting-started/
[Node]: https://nodejs.org/
[NPM]: https://npmjs.com/
Expand Down
18 changes: 4 additions & 14 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import tailwind from '@astrojs/tailwind';
import svgSprite from 'astro-svg-sprite';
import tailwindConfig from './tailwind.config';
import postcssTailwindShortcuts from '@locomotivemtl/postcss-tailwind-shortcuts';
import removeDoubleParentheses from '@locomotivemtl/postcss-remove-double-parentheses';
import postcssHelpersFunctions from '@locomotivemtl/postcss-helpers-functions';

const isProd = import.meta.env.PROD;

Expand All @@ -12,21 +12,10 @@ export default defineConfig({
site: 'https://locomotive-astro-boilerplate.vercel.app',
vite: {
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
additionalData: `
@use "sass:math";
@use "sass:list";
@use "@styles/tools/maths" as *;
@use "@styles/tools/functions" as *;
`
}
},
postcss: {
plugins: [
postcssTailwindShortcuts(tailwindConfig.theme, { prefix: 'theme' }),
removeDoubleParentheses()
postcssHelpersFunctions()
]
}
},
Expand All @@ -36,7 +25,8 @@ export default defineConfig({
},
integrations: [
tailwind({
applyBaseStyles: false
applyBaseStyles: false,
nesting: true
}),
svgSprite({
include: './src/assets/svgs'
Expand Down
Loading