youtube image
From YouTube: CSS in JS with SharePoint Framework

Description

In this 25-minute developer focused demo, Sergei Sergeev & Andrew Koltyakov - show 2 options for “styling” inside SharePoint components using Framework dependent JavaScript (React) or Framework agnostic TypeScript. The presenters’ step-through the two approaches for stylizing a button and background, drawing from TypeScript (Sergei) and Styled-Components (Andrew) libraries. Stylized Components is a modern and popular way to provide CSS in JS and has a tiny learning curve especially for React developers. The Pros and Cons of CSS in JS are discussed. This demo is extracted from the bi-weekly PnP community – SharePoint Framework and JavaScript Special Interest Group (SIG) call recorded June 4, 2020.

Demo Presenters:
• Sergei Sergeev (Mastaq) | @sergeev_srg
• Andrew Koltyakov (ARVO Systems) | @koltyakov

Supporting materials:
• Styling SharePoint Framework components using CSS in JS approach | Sergei Sergeev (Mastaq) | @sergeev_srg | https://spblog.net/post/2020/04/22/styling-sharepoint-framework-components-with-css-in-js-approach
• "CSS in JS" with SharePoint Framework and TypeStyle | https://github.com/pnp/sp-dev-fx-webparts/blob/master/samples/react-css-in-js-typestyle/README.md

Resources:
• Learn more about the SharePoint developer community at: http://aka.ms/m365pnp
• Visit the SharePoint PnP Developer Community YouTube channel: https://aka.ms/spdev-videos