Comments (6)
Did the Dart Sass work flawlessly with pico v1.5.x? If so, it is likely that it doesn't properly support the @forward and/or @use statements. At least that's the behavior I found with phpscss which Is why I switched to lib sass or sass-npm. Is using a different compiler or pre-compiling an option?
from pico.
I have no clue of the inner workings of Hugo or its tech stack nor its deployment. So I can't really help here. But is it a 100% necessary to do the compiling that way? Could you just do <link rel="stylesheet" href="//some.cdn.com/pre-compiled-pico.css" /><link rel="stylesheet" href="custom-precompiled-theme.css" />
something like this, to avoid the problem altogether?
from pico.
Did the Dart Sass work flawlessly with pico v1.5.x? If so, it is likely that it doesn't properly support the @forward and/or @use statements. At least that's the behavior I found with phpscss which Is why I switched to lib sass or sass-npm. Is using a different compiler or pre-compiling an option?
IIRC, v1.5.12 works fine with libsass shipped in hugo-extended but I didn't try with dart sass, but v2.0.3 completely fails with libsass.
Is using a different compiler or pre-compiling an option?
These are all the configs hugo allows me: https://gohugo.io/hugo-pipes/transpile-sass-to-css/
Afaik, I can only use libsass or dart sass.
from pico.
Oh, just to be clear:
v1.5.12 works with both libsass and dartsass
v2.0.3 will fail with an error with dartsass (the error I reported in the initial comment) but will create a minified file with the following content if using libsass:
@forward "settings";@use "index"
Just as if the conversion from sass to css had completely failed.
from pico.
For now I have reverted to using the pre compiled .min.css variant.
I believe all my CSS broke due to the new pico-
prefix, so now that I adjusted the CSS I will have to retest whether Pico CSS as scss works with libsass (but for sure it seems to be broken with dart sass)
from pico.
I made a new attempt, apparently libsass doesn't support the @use
directive and the issue I'm having with Dart Sass is apparently related to relative imports.
So, I would have to figure out how to set correctly the path Hugo uses to resolve the relative imports.
I can set the includePaths
option on Hugo but still no luck in getting it working so far.
So, while the change to using @use
on picocss broke it for me, I would likely have to talk with the Hugo project to figure out how to fix this.
from pico.
Related Issues (20)
- Table has unexpected background color when in `<article>` in dark theme
- Dropdown is not vertically aligned with `<a>` in `<nav>` HOT 2
- Selecting another radio has a flash of white in dark mode
- Version 2 cards have almost no padding HOT 3
- Suggestion: make submit buttons inside forms with invalid inputs have the same look as disabled buttons
- Customized design system Example is down
- Image element attribute height is overridden
- Dialog height on mobile devices (svh vs vh)
- A bug with the name of the color Fuchsia on the website
- Example on picocss site for Design Systems is not working
- Card inside a Dialog does not have the correct width.
- Links don't respect `--pico-text-underline-offset` variable
- Using $parent-selector variable doesn't fully restrict styles to specified selector. HOT 1
- aria-invalid with grouped input
- Invalid HTML5 HOT 1
- Helper texts are incompatible with groups
- textarea after button spacing
- `code` tag should keep whitespace HOT 4
- Nav example horizontal scroll HOT 2
- Remove margin-bottom on last child HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico.