Don’t hesitate to contact us if you have any feedback.

Tag: SCSS

  • SCSS – VSCode Snippets

    SCSS – VSCode Snippets

    Introduction As a developer, efficiency and speed are crucial. Visual Studio Code (VSCode) allows you to create custom snippets to reduce repetitive tasks and save time. In this article, we’ll walk you through adding a set of SCSS snippets to VSCode. These snippets are designed to help streamline your workflow when working with media queries,…

    Read more

  • SCSS – Convert HEX to RGB

    SCSS – Convert HEX to RGB

    When working with colors in web design, it’s often necessary to convert between different color formats. The SCSS function hexToRGBString simplifies the process of converting a hexadecimal color value to an RGB string, which can be particularly useful for dynamic styling and JavaScript interactions. The Code How It Operates The hexToRGBString function takes a hexadecimal…

    Read more

  • SCSS – Convert HEX to HSL

    SCSS – Convert HEX to HSL

    Manipulating colors in web design is a common task, and sometimes you need to convert color formats to achieve the desired effect or compatibility. The SCSS function hexTohslString provides a straightforward way to convert a hexadecimal color value to an HSL (Hue, Saturation, Lightness) string, which can then be used within your stylesheets. The Code…

    Read more

  • SCSS – Font Family variables for streamlined styling

    SCSS – Font Family variables for streamlined styling

    Managing typography across a website can be a complex task, especially when dealing with multiple font families. The SCSS snippet below sets up a system of variables for font families, making it easy to maintain and update fonts throughout your site’s stylesheets. Defining Font Family Variables This SCSS map $fonts defines a series of font…

    Read more

  • SCSS – Flexible Animation

    SCSS – Flexible Animation

    In modern web development, animations play a key role in enhancing user experience and interactivity. The SCSS snippet provided allows developers to create a highly flexible and customizable fade-in animation using CSS variables within keyframes. Keyframe Definition with Customizable Variables This @keyframes rule, named fadeFromBottom, defines a vertical fade-in animation. The animation starts with the…

    Read more

  • SCSS – Min-Max interpolation

    SCSS – Min-Max interpolation

    Responsive design often requires fluid scaling of elements to fit different screen sizes. A typical use case is scaling typography, where font sizes should adjust between a minimum and maximum size based on the viewport/container-size. To facilitate this, we use min-max interpolation techniques. SCSS Helper Functions The SCSS code includes several functions designed to enable…

    Read more

  • SCSS – Remove units from numbers

    SCSS – Remove units from numbers

    In the realm of CSS preprocessing, we often encounter situations where we need to perform calculations or pass values to functions that expect unitless numbers. However, numbers in CSS often come with units like pixels (px), ems (em), or percentages (%), which can be problematic in such cases. Introducing the strip-unit Function To address this…

    Read more

  • SCSS – Internationalization of Quotation Marks

    SCSS – Internationalization of Quotation Marks

    In written language, different cultures use different symbols to denote quotations. For instance, English typically uses “curly quotes,” while French favors «angle quotes», and German uses „bottom quotes“. Ensuring that the correct quotation marks appear based on the language of the text is an important detail for maintaining the authenticity and readability of multilingual content…

    Read more

  • SCSS – Simple checkbox styling

    SCSS – Simple checkbox styling

    Styling checkboxes in CSS often requires additional HTML elements or complex workarounds. However, this method simplifies the process by leveraging pseudo-elements directly within the input[type=’checkbox’] element, eliminating the need for extra HTML modifications. SCSS Magic The magic happens in the SCSS, where custom properties are declared for easy styling. The input[type=’checkbox’] is targeted directly, with…

    Read more

  • Implementing Custom Popups with HTML, CSS, and JavaScript

    Implementing Custom Popups with HTML, CSS, and JavaScript

    Creating interactive popups can greatly enhance user engagement on websites. This implementation showcases a simple yet effective way to create custom popups using native HTML <dialog> elements, accompanied by CSS for styling and JavaScript for functionality. HTML Structure for Popups The HTML structure includes two main sections: one with buttons to trigger the popups and…

    Read more