Convert Figma logo to code with AI

cyanharlow logopurecss-francine

HTML/CSS drawing in the style of an 18th-century oil painting. Hand-coded entirely in HTML & CSS.

7,745
511
7,745
49

Top Related Projects

19,527

不止于 CSS

CSS3奇思妙想,单标签实现各类图形

CSS Inspiration,在这里找到写 CSS 的灵感!

Quick Overview

The cyanharlow/purecss-francine repository is a CSS-only project that creates a stunning, responsive, and interactive portrait of a woman named Francine. The project showcases the power of CSS to create intricate and visually appealing designs without the need for JavaScript or other external dependencies.

Pros

  • CSS-only Implementation: The entire project is built using only CSS, demonstrating the versatility and capabilities of the language.
  • Responsive Design: The portrait adapts seamlessly to different screen sizes and devices, ensuring a consistent and visually appealing experience.
  • Interactive Elements: The project includes interactive elements, such as hover effects and animations, that enhance the user experience.
  • Attention to Detail: The portrait is meticulously crafted, with a high level of attention to detail in the design and implementation.

Cons

  • Limited Customization: The project is primarily focused on the specific portrait of Francine, which may limit its usefulness for users who want to create their own unique designs.
  • Performance Concerns: The complex CSS code may have a higher impact on performance, especially on older or less powerful devices.
  • Accessibility Considerations: The project may not fully adhere to accessibility standards, which could limit its usability for users with disabilities.
  • Lack of Documentation: The project's documentation is relatively sparse, which may make it challenging for newcomers to understand and customize the code.

Code Examples

/* Francine's face */
.face {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #f2e8d8, #e6d8c7);
  border-radius: 50%;
  overflow: hidden;
}

/* Francine's eyes */
.eye {
  position: absolute;
  width: 20%;
  height: 30%;
  background-color: #333;
  border-radius: 50%;
  animation: blink 5s infinite;
}

@keyframes blink {
  0%, 100% {
    transform: scaleY(0.1);
  }
  5%, 95% {
    transform: scaleY(1);
  }
}

This code snippet defines the styles for Francine's face and eyes, including the use of a linear gradient background and an animation for the blinking effect.

/* Francine's hair */
.hair {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #b58b59, #a37a4e);
  clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
  );
}

This code defines the styles for Francine's hair, using a linear gradient background and a custom clip-path to create the distinctive hairstyle.

/* Francine's dress */
.dress {
  position: absolute;
  width: 100%;
  height: 50%;
  bottom: 0;
  background: linear-gradient(to bottom, #c2a58c, #b29380);
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%,
    75% 100%,
    50% 75%,
    25% 100%,
    0% 100%
  );
}

This code defines the styles for Francine's dress, using a linear gradient background and a custom clip-path to create the shape of the dress.

Getting Started

To use the cyanharlow/purecss-francine project, follow these steps:

  1. Clone the repository to your local machine:
git clone https://github.com/cyanharlow/purecss-francine.git
  1. Navigate to the project directory:
cd purecss-francine
  1. Open the index.html file in your web browser to view the Francine portrait.

  2. To customize the project, you can modify the CSS code in the style.css

Competitor Comparisons

19,527

不止于 CSS

Pros of iCSS

  • iCSS provides a wide range of CSS techniques and examples, covering various topics such as animations, layouts, and visual effects.
  • The repository is actively maintained and regularly updated with new content, ensuring that the examples remain relevant and up-to-date.
  • The project's documentation is well-organized and easy to navigate, making it a valuable resource for developers looking to learn and experiment with CSS.

Cons of iCSS

  • While iCSS offers a comprehensive collection of CSS examples, the repository may not be as visually appealing as the Francine project.
  • The focus of iCSS is on showcasing CSS techniques, rather than creating a cohesive design or user experience.
  • The repository may not be as suitable for beginners as Francine, as it assumes a certain level of CSS knowledge.

Code Comparison

Francine (cyanharlow/purecss-francine)

.francine {
  width: 400px;
  height: 500px;
  position: relative;
  background: #fff;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 50px rgba(0,0,0,0.2);
}

iCSS (chokcoco/iCSS)

.box {
  width: 200px;
  height: 200px;
  background-color: #f1f1f1;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, #ff6b6b, #ffa500);
  animation: rotate 10s linear infinite;
}

CSS3奇思妙想,单标签实现各类图形

Pros of magicCss

  • Provides a wide range of creative and visually stunning CSS effects, including 3D transformations, animations, and unique hover effects.
  • Offers a well-documented and easy-to-use library, making it accessible for developers of all skill levels.
  • Includes a comprehensive collection of examples and demos, which can serve as a valuable resource for learning and inspiration.

Cons of magicCss

  • The library may be overkill for projects that require a more minimalist or lightweight approach to CSS.
  • Some of the more complex effects may not be suitable for all use cases, as they could potentially impact performance or accessibility.
  • The library's focus on visual effects may not align with projects that prioritize simplicity or functional design.

Code Comparison

purecss-francine

.francine {
  width: 300px;
  height: 400px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

magicCss

.magic {
  animation: magic 1s ease-in-out infinite;
}

@keyframes magic {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

CSS Inspiration,在这里找到写 CSS 的灵感!

Pros of CSS-Inspiration

  • Comprehensive collection of CSS-based design inspirations and examples
  • Organized into various categories for easy browsing and discovery
  • Provides detailed code snippets and explanations for each example

Cons of CSS-Inspiration

  • Primarily focused on showcasing CSS techniques, with less emphasis on overall design and user experience
  • May not be as visually striking or polished as the Purecss-Francine project
  • Requires more time and effort to navigate and find specific examples of interest

Code Comparison

Purecss-Francine:

.francine {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #f2f2f2, #e6e6e6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.francine__container {
  width: 400px;
  height: 600px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

CSS-Inspiration:

.card {
  width: 300px;
  height: 400px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-10px);
}

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Pure CSS Francine

An ongoing series in which I create art using only CSS and HTML.

Rules I have for myself:

  1. All elements must be typed out by hand
  2. Only Atom text editor and Chrome Developer Tools allowed.
  3. SVG use is limited, and all shapes can only use hand-plotted coordinates and bezier curves - without the aid of any graphics editor. (Note: at one point I was using one or two SVG elements but I eventually grew tired of them and they've since been deleted, so this rule no longer applies. No offense to SVG.)

Because of the artistic nature of this project I have not concerned myself with cross-browser-compatibility, so the live preview will most likely look laughable in anything other than chrome.

cyanharlow.github.io/purecss-francine

alt text