Preprocessing default styles #80
-
Hey! I just started trying Iles and I really like your philosophy here. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi Hardi! @luminarious As you mentioned, importing styles in For not-so-global styles, have in mind that layouts can inherit from other layouts—a common pattern I've been using is to create a Currently, îles only attempts to detect You don't really need to use TypeScript if you don't want to, and can write plain JS, but the file needs to be named that way. Let me know if you meant |
Beta Was this translation helpful? Give feedback.
-
Hey @ElMassimo, I just came across this as I had a similar issue after trying to remove Typescript and use plain js files. Eslint was playing up and I'm not a big fan of using TS, would it be possible to use either JS or TS? Just wondering why it's only TS? Thanks |
Beta Was this translation helpful? Give feedback.
Hi Hardi! @luminarious
As you mentioned, importing styles in
src/app.ts
is the best way to add global styles, as in these examples.For not-so-global styles, have in mind that layouts can inherit from other layouts—a common pattern I've been using is to create a
base
layout which can be easily referenced from other layouts using<template layout="base">
.Currently, îles only attempts to detect
src/app.ts
(in contrast withsrc/app.js
).You don't really need to use TypeScript if you don't want to, and can write plain JS, but the file needs to be named that way.
Let me know if you meant
src/app.ts
, if you share a minimal reproduction I can take a look.