- https://fonty.io/
- http://pxtoem.com/
- https://csslayout.io/
- https://animista.net/
- https://neumorphism.io
- https://justcode.today/
- https://neat.firecms.co/
- https://ui-snippets.dev/
- https://supportscss.dev/
- https://shadows.brumm.af/
- https://copy-paste-css.com/
- https://flukeout.github.io/
- https://accordionslider.com/
- https://enes.in/sorted-colors/
- https://www.projectwallace.com/
- https://1linelayouts.glitch.me/
- http://www.menucool.com/css-menu
- https://www.cssgradienteditor.com/
- https://fluid-typography.netlify.app/
- https://www.style-dictionary-play.dev/
- https://dailydevlinks.com/minimal-css-loader-collection
- https://hugogiraudel.github.io/selectors-explained/
- https://wweb.dev/resources/css-separator-generator
- https://www.magicpattern.design/tools/css-backgrounds/
- https://github.com/michael-andreuzza/wickedblocks
- https://9elements.github.io/fancy-border-radius
- https://github.com/picturepan2/devices.css
- https://github.com/sdras/cssgridgenerator
- https://github.com/amzn/style-dictionary
- https://css-shorthands.netlify.app/
- https://markodenic.com/css-tips/
- https://cssbuttons.vercel.app/
- https://cssarrowplease.com/
- https://houdini.how
- https://open-props.style/
- https://web.dev/learn/css/
- https://complementary.space/
- https://web.dev/color-scheme/
- https://www.w3schools.com/w3css/
- https://web.dev/centering-in-css/
- https://github.com/csswizardry/ct
- https://web.dev/font-best-practices/
- https://github.com/getbem/awesome-bem
- https://kyleshevlin.com/no-outer-margin/
- https://github.com/necolas/idiomatic-css
- https://github.com/philipwalton/flexbugs
- https://github.com/samanthaming/Flexbox30
- https://calibreapp.com/blog/css-performance
- https://ishadeed.com/article/css-scroll-snap/
- https://dev.to/ladybug/css-cheat-sheets-3ee0
- https://github.com/AllThingsSmitty/css-protips
- https://github.com/j9t/css-optimization-basics
- https://melanie-richards.com/blog/css-grid-sticky
- https://github.com/philipwalton/solved-by-flexbox
- https://ishadeed.com/article/css-short-long-content
- https://www.taniarascia.com/overview-of-css-concepts
- https://www.joshwcomeau.com/animation/css-transitions/
- https://css-tricks.com/snippets/css/a-guide-to-flexbox
- https://github.com/learning-zone/css-interview-questions
- https://moderncss.dev/complete-guide-to-centering-in-css/
- https://engineering.kablamo.com.au/posts/2021/my-first-css
- https://piccalil.li/tutorial/fluid-typography-with-css-clamp
- https://www.sarasoueidan.com/blog/style-settings-with-css-variables
- https://dev.to/joyshaheb/css-grid-cheat-sheet-illustrated-in-2021-1a3
- https://timseverien.com/posts/2020-12-06-what-makes-css-hard-to-master
- https://medium.com/@js_tut/the-complete-css-flex-box-tutorial-d17971950bdc
- https://moderncss.dev/practical-uses-of-css-math-functions-calc-clamp-min-max/
- https://github.com/xz/new.css
- https://github.com/jgthms/bulma
- https://github.com/picocss/pico
- https://github.com/dhg/Skeleton
- https://github.com/r1/cssbuttons
- https://github.com/andybrewer/mvp
- https://github.com/oxalorg/sakura
- https://github.com/yegor256/tacit
- https://github.com/chakra-ui/panda
- https://github.com/css-modules/icss
- https://github.com/jonsuh/hamburgers
- https://github.com/franciscop/picnic
- https://github.com/callstack/linaria
- https://github.com/FullHuman/purgecss
- https://github.com/ihsan6133/tiny.css
- https://github.com/linkedin/css-blocks
- https://github.com/Gioni06/terminal.css
- https://github.com/vasanthv/stylize.css
- https://github.com/dbohdan/classless-css
- https://github.com/css-doodle/css-doodle
- https://github.com/Stranger6667/css-inline
- https://github.com/frontend-joe/css-navbars
- https://github.com/marcj/css-element-queries
- https://github.com/dohliam/dropin-minimal-css
- https://github.com/projectwallace/wallace-cli
- https://github.com/yogurt-foundation/yogurt-css
- https://github.com/sindresorhus/modern-normalize
- https://github.com/troxler/awesome-css-frameworks
- https://github.com/skovy/typed-scss-modules
- https://github.com/emilkowalski/ui-snippets
- https://github.com/SanderElias/open-props
- https://github.com/argyleink/open-props
- https://github.com/tokenami/tokenami
- https://hypercolor.dev/#gradients
- https://tailblend.vercel.app/
- https://github.com/shadcn-ui/ui
- https://github.com/unocss/unocss
- https://github.com/ndaba1/twinit
- https://github.com/tw-in-js/twind
- https://github.com/saadeghi/daisyui
- https://github.com/mertJF/tailblocks
- https://github.com/vinicoder/tw-to-css
- https://github.com/jordihales/hypercolor
- https://github.com/tailwindlabs/headlessui
- https://github.com/Devzstudio/tailwind_to_css
- https://github.com/nextui-org/tailwind-variants
- https://github.com/aniftyco/awesome-tailwindcss
- https://github.com/mertasan/tailwindcss-variables
- https://github.com/tailwindlabs/tailwindcss-forms
- https://github.com/windicss/windicss-intellisense
- https://github.com/stevecochrane/tailwindcss-logical
- https://github.com/new-data-services/tailwindcss-animated
- https://github.com/tailwindlabs/tailwindcss-container-queries
- https://github.com/ffoodd/a11y.css
- https://github.com/Heydon/REVENGE.CSS
- https://github.com/imbrianj/debugCSS
- https://github.com/nternetinspired/debug-css
- https://jdan.github.io/98.css/
- https://github.com/botoxparty/XP.css
- https://github.com/captbaritone/webamp
- https://github.com/AbimaelAndrade/twitter-flexbox
- https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap
- https://github.com/creativetimofficial/argon-design-system
- https://github.com/froala/design-blocks
- https://codepen.io/argyleink/pen/wvMxEXM scroll contextual conic gradient text
- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
- https://philipwalton.com/articles/what-no-one-told-you-about-z-index/
- https://www.theguild.nl/how-the-css-stacking-context-works/
- https://css-tricks.com/css-stacking-contexts/
-
https://youtu.be/7CACVgIZQ1k CSS Positioning Crash Course
-
position property specifies the type of positioning method used for an element (static, relative, fixed, absolute or sticky).
-
by default html elements are position: static; in this case these adjusting properties below will not do anything.
-
after choosing a position then html elements are then positioned using the adjusting properties: top, bottom, left and right. But those adjusting properties will work differently depending on the position value (see below) relative and absolute can also be adjusted using inset-block and inset-inline
-
position: static; # element is not affected by the adjusting properties. (they are shown in order they are defined, top to bottom, z-index is automaticly defined as 0)
-
position: relative; # element is positioned using adjusting properties relative to its normal position in the view/dom.
-
position: fixed; # element is positioned using adjusting properties relative to the viewport, scroll has no effect.
-
position: absolute; # element is positioned using adjusting properties relative to the nearest positioned ancestor. if multiple elements are absolute at the same position then they are stacked in the order they are written in the html, z-index can be modified to customize the display of those absolute elements, if z-index is defined to less than 0 then statics elements will be shown above
-
position: sticky; # element is positioned relative to its normal position in the view/dom (like relative) and automatically toggle to fixed when a given offset position is met in the viewport
-
learn more:
CSS parent selector: li:has(> a.active) { /* styles to apply to the li tag */ }
-
z-index has utility only if position is specified
-
z-index is working only between elements at same level
-
z-index itself is causing the creation of a stacking context
-
then stacking context is taking effects for child elements
-
even if a child element has the higher z-index it will stay below because of his parent z-index
-
others attribute are creating a stacking context such as: transform, filter, perspective, clip-path...
-
a idea is to add z-index to the higher parent possible so not on child items... more infos about stacking context:
-
https://www.youtube.com/watch?v=uS8l4YRXbaw CSS Z-Index and Stacking Context
-
https://www.youtube.com/watch?v=qblxToPBY7Y Z-index CSS Tutorial ( Position and Stacking Order )
- https://www.w3schools.com/cssref/pr_class_display.asp
- https://www.w3schools.com/cssref/playit.asp?filename=playcss_display
- https://hackernoon.com/the-ultimate-css-battle-grid-vs-flexbox-d40da0449faf
- https://www.webdesignerdepot.com/2018/09/grid-vs-flexbox-which-should-you-choose/
- https://webdesign.tutsplus.com/articles/flexbox-vs-css-grid-which-should-you-use--cms-30184
- inline: Displays an element as an inline element (like ). Any height and width properties will have no effect.
- block: Displays an element as a block element (like
). It starts on a new line, and takes up the whole width
- flex: Displays an element as a block-level flex container
- grid: Displays an element as a block-level grid container
- table: Let the element behave like a element
inline-block: Displays an element as an inline-level block container. The element itself is formatted as an inline element, but you can apply height and width values inline-flex: Displays an element as an inline-level flex container inline-grid: Displays an element as an inline-level grid container inline-table: The element is displayed as an inline-level table
- The basic difference between CSS Grid Layout and CSS Flexbox Layout is that flexbox was designed for layout in one dimension - either a row or a column. Grid was designed for two-dimensional layout - rows, and columns at the same time. It's recommended to use
grid
for layout tags and thenflex
for component level. Because grid can allow simple and powerful adjustement based on the width. Flex will adjust automatically depending on the size so it's perfect for avoiding adjustement issue on small components. - it's recommended to use
div (section, article, header, footer)
for layout,p
for text content and thenspan
for component level. Because div and p areblock
(full width and equivalant to line-break before and after it). Span isinline
so your things will stays on the same line. Even better you can avoidspan
with others specific in-line such as:b,i,em...
- if you use sass or less it's recommended to use nested css class, it is good practive, however you must avoid to nest to deeply, for instance you should limit this nested to 3 or 4 levels maximum. If you have more you can group it and extract in another nested block. Or move it to another isolated component.
- to adapt the text based on the container use display flex and overflow hidden and min width 0 on the container or add a wrapper tag to do that then add ellipsis on the span with the text to hide and nowrap on all the spans so span with ellipsiis will be truncated and span without will display the entire text.
- https://leonardofaria.net/2020/07/18/using-flexbox-and-text-ellipsis-together
- https://css-tricks.com/flexbox-truncated-text/
- Flexbox is One Dimensional, Grid is Two Dimensional
- Grid is Container-Based, Flexbox is Content-Based
CSS Grid focuses on precise content placement. Each item is a grid cell, lined up along both a horizontal and a vertical axis. If you want to accurately control the position of items within a layout, CSS Grid is the way to go.
“It provides a mechanism for authors to divide available space for layout into columns and rows using a set of predictable sizing behaviors. Authors can then precisely position and size the building block elements of their application into the grid areas defined by the intersections of these columns and rows.”
Flexbox focuses on content flow rather than content placement. Widths (or heights) of flex items are determined by the content of the item. Flex items grow and shrink according to their inner content and the available space. This is how W3C’s flexbox docs explain the goals of the layout module:
“Flexbox gains simple and powerful tools for distributing space and aligning content in ways that web apps and complex web pages often need.”
- Specificity is the means by which browsers decide which CSS property values are the most relevant to an element and, therefore, will be applied
SCORE SELECTOR 0.0.0.0.0 universal (*) 0.0.0.0.1 element or pseudo-element (h1) 0.0.0.1.0 class, pseudo-class, pseudo-element, attribute (.example/:hover/:after/[type="radio"]) 0.0.1.0.0 id (#example) 0.1.0.0.0 Inline style (style="...") 1.0.0.0.0 overrides (!important)
- learn more:
- https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity
- https://uxengineer.com/css-specificity-avoid-important-css/
- margin,padding is like a clock
- margin: 10px 5px 30px 40px
- top right bottom left
-
https://dev.to/afif/adding-100-underline-overlay-animations-the-impressive-css-collection-1a93
-
utiliser la proriété transform pour faire des animations en css avec @keyframes car si vous utilisez une proriété css standard tel que margin-left alors cela déclenche le processus de rendering du layout.
- The basic difference between CSS Grid Layout and CSS Flexbox Layout is that flexbox was designed for layout in one dimension - either a row or a column. Grid was designed for two-dimensional layout - rows, and columns at the same time. It's recommended to use