css
CSS on steroids
styles.css
body {
margin: 0;
}
body h1 {
content: 'Hello';
}
body my-component[onclick=alert('Hello')] {
content: var(--clickCount);
}
body canvas {
camera: gyro;
data: 'https://sketchfab.com/api/v1/models/suzanne.obj'
}
css styles.css
=> index.html
- CSS file is left as it is
- You can edit it in the dev tools of your browser
- Style changes will appear live
- Structural changes require you to start a watcher to see them live
- Changes to index.html from outside will update your CSS (two-way tooling)
- Take the CSS with you, HTML not needed
Can be implemented as "always-on" compiler in watch-mode with LSP.
Lifecycle, events and states (:hover etc).
You have components and components pass down properties and emit events.
A new positioning model (display: physical) with gravity, collisions and fluid drag'n'drop.
In fluid drag'n'drop you lift elements out of their force balance by click and hold, which makes their shape change according to curvature flow.
-
Tree Navigation (Selectors)
- Element
- id
- class
- attribute
- pattern matching/globs
- state
- pseudo class (hover, active, focus...)
- descendent
- direct child
- first and last child
- :root
-
Variables (Custom Properties)
- --my-variable
- var(--my-variable)
-
Units
- px
- em
- lh
- vh
- %
-
Files
- @import
-
Responsiveness (Media Queries)
- @media
-
JS
- document.styleSheets.item(i).rules.item(j).styleSheet
- element.style
- pointer-events
- touch-action
-
Geometry (box-sizing)
- margin
- border
- padding
- width
- height
- border-radius
-
Position (position)
- left
- right
- top
- bottom
- z-index
-
Layout (display)
- align-items
- justify-content
- flex-direction
-
Color
- background
- color
- border-color
- box-shadow
-
Graphics
- Clips
- Gradients
- filter
- transform
- perspective
- SVG
-
Animation
- transition
- animation
- @keyframes
-
Scrolling (overflow)
- scroll-behavior
- scroll-snap
- scroll-margin
- scroll-padding
- background-attachment
-
Typography
- font-family
- font-variant
- font-weight
- font-size
- letter-spacing
- line-height
- word-break
- word-spacing
- white-space
- text-align
- text-decoration
- text-indent
- text-overflow
- text-shadow
- text-transform
- cursor
- caret-shape
- caret-color
- user-select
#low-code-digitalization #self-modifying-software